We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 28e9c6b + e109b5e commit 5d85c63Copy full SHA for 5d85c63
web/infer.py
@@ -59,11 +59,7 @@ def get_lora_paths():
59
if not os.path.exists(lora_dir):
60
os.makedirs(lora_dir, exist_ok=True)
61
return ["None"]
62
- checkpoint_dirs = [
63
- d
64
- for d in os.listdir(lora_dir)
65
- if os.path.isdir(os.path.join(lora_dir, d)) and d.startswith("checkpoint")
66
- ]
+ checkpoint_dirs = [d for d in os.listdir(lora_dir) if os.path.isdir(os.path.join(lora_dir, d))]
67
68
if not checkpoint_dirs:
69
@@ -206,7 +202,7 @@ def refresh_lora_paths():
206
202
minimum=1,
207
203
maximum=50,
208
204
step=1,
209
- value=1,
205
+ value=50,
210
)
211
guidance_scale = gr.Slider(
212
label="Guidance Scale",
0 commit comments