SuCicada commited on
Commit
831a077
1 Parent(s): 783bf66
Files changed (2) hide show
  1. README.md +3 -1
  2. app.py +2 -1
README.md CHANGED
@@ -9,4 +9,6 @@ app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
9
  pinned: false
10
  ---
11
 
12
+ 设置为: width 1024, height 512
13
+ gpu 内存不够
14
+ RuntimeError: CUDA out of memory. Tried to allocate 4.50 GiB (GPU 0; 14.76 GiB total capacity; 7.22 GiB already allocated; 1.12 GiB free; 12.58 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
app.py CHANGED
@@ -61,7 +61,8 @@ def run():
61
  gr.Slider(512, 1024, 512, step=64, label="height"),
62
  gr.Slider(1, 4, 1, step=1, label="Number of Images"),
63
  gr.Slider(10, 150, step=1, value=50,
64
- label="num_inference_steps"),
 
65
  gr.Slider(0, 20, 7.5, step=0.5,
66
  label="guidance_scale:\n" +
67
  "较高的引导比例鼓励生成与文本“提示”密切相关的图像,通常以降低图像质量为代价"),
 
61
  gr.Slider(512, 1024, 512, step=64, label="height"),
62
  gr.Slider(1, 4, 1, step=1, label="Number of Images"),
63
  gr.Slider(10, 150, step=1, value=50,
64
+ label="num_inference_steps:\n"
65
+ "去噪步骤的数量。更多的去噪步骤通常会导致更高质量的图像,但会降低推理速度。"),
66
  gr.Slider(0, 20, 7.5, step=0.5,
67
  label="guidance_scale:\n" +
68
  "较高的引导比例鼓励生成与文本“提示”密切相关的图像,通常以降低图像质量为代价"),