chenyangqi commited on
Commit
6024290
1 Parent(s): 976ac7c

limite num_steps to 30

Browse files
.vscode/launch.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "name": "Python: Current File",
9
+ "type": "python",
10
+ "request": "launch",
11
+ "program": "app_fatezero.py",
12
+ "console": "integratedTerminal",
13
+ "justMyCode": true,
14
+ "env": {"CUDA_VISIBLE_DEVICES": "7"}
15
+ }
16
+
17
+ ]
18
+ }
__pycache__/example.cpython-38.pyc ADDED
Binary file (447 Bytes). View file
 
__pycache__/inference_fatezero.cpython-38.pyc CHANGED
Binary files a/__pycache__/inference_fatezero.cpython-38.pyc and b/__pycache__/inference_fatezero.cpython-38.pyc differ
 
app_fatezero.py CHANGED
@@ -200,7 +200,7 @@ with gr.Blocks(css='style.css') as demo:
200
  num_steps = gr.Slider(label='Number of Steps',
201
  info='larger value has better editing capacity, but takes more time and memory. (50 steps may produces memory errors)',
202
  minimum=0,
203
- maximum=50,
204
  step=1,
205
  value=10)
206
  guidance_scale = gr.Slider(label='CFG Scale',
 
200
  num_steps = gr.Slider(label='Number of Steps',
201
  info='larger value has better editing capacity, but takes more time and memory. (50 steps may produces memory errors)',
202
  minimum=0,
203
+ maximum=30,
204
  step=1,
205
  value=10)
206
  guidance_scale = gr.Slider(label='CFG Scale',
example.py CHANGED
@@ -1,4 +1,4 @@
1
- num_steps = 50
2
  style_example = [
3
  [
4
  'CompVis/stable-diffusion-v1-4',
 
1
+ num_steps = 30
2
  style_example = [
3
  [
4
  'CompVis/stable-diffusion-v1-4',