turingevo commited on
Commit
8ef3cf1
·
verified ·
1 Parent(s): 89829af

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +61 -3
README.md CHANGED
@@ -1,3 +1,61 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+ ### 我们的网站
5
+ ### Our website
6
+ [turingevo.com](https://turingevo.com)
7
+
8
+
9
+ 欢迎使用我们的产品——开源免费的多模态AI笔记
10
+
11
+ Welcome to use our product - an open-source and free multimodal AI note-taking tool.
12
+
13
+ ### 本模型使用 [stable-diffusion.cpp](https://github.com/akleine/stable-diffusion.cpp/) 从 [turingevo/tiny-sd-safetensors](https://huggingface.co/turingevo/tiny-sd-safetensors) 转换
14
+ ### This model uses [stable-diffusion.cpp](https://github.com/akleine/stable-diffusion.cpp/) to convert from [turingevo/tiny-sd-safetensors](https://huggingface.co/turingevo/tiny-sd-safetensors).
15
+
16
+ ### stable-diffusion.cpp 直接运行此模型
17
+ ### stable-diffusion.cpp can be directly run to execute this model
18
+
19
+
20
+ ```
21
+ #!/bin/bash
22
+
23
+ # 设置模型路径和输出路径
24
+ TYPE='q4_K'
25
+ #TYPE='q8_0'
26
+ MODEL_DIR="/media/wmx/soft2/huggingface_cache/segmind/tiny-sd-gguf/segmind_tiny-sd-${TYPE}.gguf"
27
+ OUTPUT_IMAGE="tiny_sd_output-${TYPE}.png"
28
+
29
+ # Tiny-SD 本质是极小化的 SD 1.5 架构
30
+ # 尺寸必须是 512x512
31
+ # 采样器使用默认的 euler_a (或者 dpm++2m)
32
+ # CFG 7.0 是 SD 1.5 的标准值
33
+ sd-cli \
34
+ -m "$MODEL_DIR" \
35
+ -W 512 -H 512 \
36
+ --cfg-scale 7.0 \
37
+ --steps 20 \
38
+ --sampling-method euler_a \
39
+ --diffusion-fa \
40
+ -v \
41
+ -o "$OUTPUT_IMAGE" \
42
+ -p "a cute car, high quality"
43
+
44
+ echo ""
45
+ if [ ! -f "$OUTPUT_IMAGE" ]; then
46
+ echo "[错误] 图像生成失败,请检查上面的错误日志。"
47
+ exit 1
48
+ fi
49
+ echo "生成完毕!图片保存在: $OUTPUT_IMAGE"
50
+ ```
51
+
52
+
53
+ q4_K:
54
+ ![tiny_sd_output-q4_K.png](https://www.modelscope.cn/models/TuringEvo/tiny-sd-gguf/resolve/master/tiny_sd_output-q4_K.png)
55
+
56
+ q8_0:
57
+ ![tiny_sd_output-q8_0.png](https://www.modelscope.cn/models/TuringEvo/tiny-sd-gguf/resolve/master/tiny_sd_output-q8_0.png)
58
+
59
+
60
+
61
+