Spaces:
Configuration error
Configuration error
update
Browse files
app.py
CHANGED
@@ -46,7 +46,8 @@ def accelerate_train_lora(steps, images):
|
|
46 |
print(f"images are -- {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 |
-
|
|
|
50 |
#subprocess.Popen(f'accelerate launch {"./train_lora_dreambooth.py"} \
|
51 |
os.system( f'accelerate launch {"./train_lora_dreambooth.py"} \
|
52 |
--pretrained_model_name_or_path={MODEL_NAME} \
|
|
|
46 |
print(f"images are -- {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 |
+
prit(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"} \
|
53 |
--pretrained_model_name_or_path={MODEL_NAME} \
|