ysharma HF staff commited on
Commit
4409965
·
1 Parent(s): e485b3f

update examples

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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"} \