ysharma HF Staff commited on
Commit
edd39e5
·
1 Parent(s): 36c4845

update examples

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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( f'{file.name}/{file.orig_name}', './data_example')
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} \