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