ysharma HF Staff commited on
Commit
c82d736
·
1 Parent(s): 6f6bd27
Files changed (1) hide show
  1. app.py +2 -1
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
- shutil.copy( file.name, './data_example') #/{file.orig_name}
 
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} \