TheLastBen commited on
Commit
702cf58
1 Parent(s): 2054d55

Upload sdxllorapps.py

Browse files
Files changed (1) hide show
  1. Scripts/sdxllorapps.py +0 -9
Scripts/sdxllorapps.py CHANGED
@@ -539,15 +539,6 @@ def upld(Remove_existing_instance_images, Crop_images, Crop_size, IMAGES_FOLDER_
539
  else:
540
  img.save(INSTANCE_DIR+"/"+filename, format=extension.upper())
541
 
542
- if ren:
543
- i=0
544
- for filename in tqdm(os.listdir(INSTANCE_DIR), bar_format=' |{bar:15}| {n_fmt}/{total_fmt} Renamed'):
545
- extension = filename.split(".")[-1]
546
- identifier=filename.split(".")[0]
547
- new_path_with_file = os.path.join(INSTANCE_DIR, "conceptimagedb"+str(i)+"."+extension)
548
- call('mv "'+os.path.join(INSTANCE_DIR,filename)+'" "'+new_path_with_file+'"', shell=True)
549
- i=i+1
550
-
551
  os.chdir(INSTANCE_DIR)
552
  call('find . -name "* *" -type f | rename ' "'s/ /-/g'", shell=True)
553
  os.chdir(CAPTIONS_DIR)
 
539
  else:
540
  img.save(INSTANCE_DIR+"/"+filename, format=extension.upper())
541
 
 
 
 
 
 
 
 
 
 
542
  os.chdir(INSTANCE_DIR)
543
  call('find . -name "* *" -type f | rename ' "'s/ /-/g'", shell=True)
544
  os.chdir(CAPTIONS_DIR)