ZhouZJ36DL commited on
Commit
7b9ea65
·
1 Parent(s): 2a5465f

modified: src/flux/sampling.py

Browse files
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/flux/sampling.py CHANGED
@@ -522,6 +522,24 @@ def denoise_multi_turn_consistent(
522
  info['second_order'] = False
523
  info['inject'] = inject_list[i]
524
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
525
  if next_step_velocity is None:
526
  pred, info = model(
527
  img=img,
 
522
  info['second_order'] = False
523
  info['inject'] = inject_list[i]
524
 
525
+ # Check and print devices of all input tensors
526
+ tensor_info = {
527
+ 'img': img,
528
+ 'img_ids': img_ids,
529
+ 'txt': txt,
530
+ 'txt_ids': txt_ids,
531
+ 'y (vec)': vec, # Renamed for clarity in print
532
+ 'timesteps (t_vec)': t_vec, # Renamed for clarity in print
533
+ 'guidance (guidance_vec)': guidance_vec # Renamed for clarity in print
534
+ }
535
+ for name, tensor in tensor_info.items():
536
+ if torch.is_tensor(tensor):
537
+ print(f"{name} device: {tensor.device}, shape: {tensor.shape}")
538
+ else:
539
+ print(f"{name} is not a tensor: {type(tensor)} (value: {tensor})")
540
+
541
+
542
+
543
  if next_step_velocity is None:
544
  pred, info = model(
545
  img=img,