Spaces:
Configuration error
Configuration error
update examples
Browse files
app.py
CHANGED
|
@@ -47,6 +47,7 @@ def accelerate_train_lora(steps, images):
|
|
| 47 |
# path can be retrieved by file_obj.name and original filename can be retrieved with file_obj.orig_name
|
| 48 |
for file in images:
|
| 49 |
print(f"file passed -- {file.name}")
|
|
|
|
| 50 |
shutil.copy( file.name, INSTANCE_DIR) #/{file.orig_name}
|
| 51 |
#subprocess.Popen(f'accelerate launch {"./train_lora_dreambooth.py"} \
|
| 52 |
os.system( f'accelerate launch {"./train_lora_dreambooth.py"} \
|
|
|
|
| 47 |
# path can be retrieved by file_obj.name and original filename can be retrieved with file_obj.orig_name
|
| 48 |
for file in images:
|
| 49 |
print(f"file passed -- {file.name}")
|
| 50 |
+
os.makedirs(INSTANCE_DIR, exist_ok=True)
|
| 51 |
shutil.copy( file.name, INSTANCE_DIR) #/{file.orig_name}
|
| 52 |
#subprocess.Popen(f'accelerate launch {"./train_lora_dreambooth.py"} \
|
| 53 |
os.system( f'accelerate launch {"./train_lora_dreambooth.py"} \
|