ZhouZJ36DL commited on
Commit
bb932fd
·
1 Parent(s): 4b2f2c5

modified: app.py

Browse files
app.py CHANGED
@@ -185,6 +185,7 @@ class FluxEditor:
185
  torch.cuda.empty_cache()
186
  self.model = self.model.to(self.device)
187
 
 
188
  # denoise initial noise
189
  info = {}
190
  info['feature'] = {}
@@ -419,14 +420,14 @@ class FluxEditor:
419
  #-------------------- 6.1 prepare output folder ----------------------#
420
  if not os.path.exists(self.output_dir):
421
  os.makedirs(self.output_dir)
422
- idx = 1
423
  #-------------------- 6.2 editing round ----------------------#
424
  else:
425
  fns = [fn for fn in os.listdir(self.output_dir)]
426
  if len(fns) > 0:
427
  idx = max(int(fn.split("_")[1]) for fn in fns) + 1
428
  else:
429
- idx = 1
430
  formatted_idx = str(idx).zfill(4) # Format as a 4-digit string
431
 
432
  #-------------------- 6.3 output name ----------------------#
 
185
  torch.cuda.empty_cache()
186
  self.model = self.model.to(self.device)
187
 
188
+ self.model = self.model.to(self.device)
189
  # denoise initial noise
190
  info = {}
191
  info['feature'] = {}
 
420
  #-------------------- 6.1 prepare output folder ----------------------#
421
  if not os.path.exists(self.output_dir):
422
  os.makedirs(self.output_dir)
423
+ idx = 0
424
  #-------------------- 6.2 editing round ----------------------#
425
  else:
426
  fns = [fn for fn in os.listdir(self.output_dir)]
427
  if len(fns) > 0:
428
  idx = max(int(fn.split("_")[1]) for fn in fns) + 1
429
  else:
430
+ idx = 0
431
  formatted_idx = str(idx).zfill(4) # Format as a 4-digit string
432
 
433
  #-------------------- 6.3 output name ----------------------#
src/flux/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/src/flux/__pycache__/__init__.cpython-310.pyc and b/src/flux/__pycache__/__init__.cpython-310.pyc differ
 
src/flux/__pycache__/_version.cpython-310.pyc CHANGED
Binary files a/src/flux/__pycache__/_version.cpython-310.pyc and b/src/flux/__pycache__/_version.cpython-310.pyc differ
 
src/flux/__pycache__/math.cpython-310.pyc CHANGED
Binary files a/src/flux/__pycache__/math.cpython-310.pyc and b/src/flux/__pycache__/math.cpython-310.pyc differ
 
src/flux/__pycache__/model.cpython-310.pyc CHANGED
Binary files a/src/flux/__pycache__/model.cpython-310.pyc and b/src/flux/__pycache__/model.cpython-310.pyc differ
 
src/flux/__pycache__/sampling.cpython-310.pyc CHANGED
Binary files a/src/flux/__pycache__/sampling.cpython-310.pyc and b/src/flux/__pycache__/sampling.cpython-310.pyc differ
 
src/flux/__pycache__/util.cpython-310.pyc CHANGED
Binary files a/src/flux/__pycache__/util.cpython-310.pyc and b/src/flux/__pycache__/util.cpython-310.pyc differ
 
src/flux/modules/__pycache__/autoencoder.cpython-310.pyc CHANGED
Binary files a/src/flux/modules/__pycache__/autoencoder.cpython-310.pyc and b/src/flux/modules/__pycache__/autoencoder.cpython-310.pyc differ
 
src/flux/modules/__pycache__/conditioner.cpython-310.pyc CHANGED
Binary files a/src/flux/modules/__pycache__/conditioner.cpython-310.pyc and b/src/flux/modules/__pycache__/conditioner.cpython-310.pyc differ
 
src/flux/modules/__pycache__/layers.cpython-310.pyc CHANGED
Binary files a/src/flux/modules/__pycache__/layers.cpython-310.pyc and b/src/flux/modules/__pycache__/layers.cpython-310.pyc differ
 
src/gradio_utils/gradio_outputs/exp_1/round_0000_[source].jpg DELETED

Git LFS Details

  • SHA256: fe32c6582760090b2415b8af061d9e4fc1934bc98a367b89f11da453f7e75a00
  • Pointer size: 130 Bytes
  • Size of remote file: 23.4 kB