Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
c524f6f
1
Parent(s):
a194a28
modified: src/flux/model.py
Browse files- src/flux/__pycache__/__init__.cpython-310.pyc +0 -0
- src/flux/__pycache__/_version.cpython-310.pyc +0 -0
- src/flux/__pycache__/math.cpython-310.pyc +0 -0
- src/flux/__pycache__/model.cpython-310.pyc +0 -0
- src/flux/__pycache__/sampling.cpython-310.pyc +0 -0
- src/flux/__pycache__/util.cpython-310.pyc +0 -0
- src/flux/model.py +2 -1
- src/flux/modules/__pycache__/autoencoder.cpython-310.pyc +0 -0
- src/flux/modules/__pycache__/conditioner.cpython-310.pyc +0 -0
- src/flux/modules/__pycache__/layers.cpython-310.pyc +0 -0
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/model.py
CHANGED
|
@@ -99,7 +99,8 @@ class Flux(nn.Module):
|
|
| 99 |
bias_device = self.img_in.bias.device if self.img_in.bias is not None else "N/A (None)"
|
| 100 |
#print(f"self.img_in.weight device: {weight_device}")
|
| 101 |
#print(f"self.img_in.bias device: {bias_device}")
|
| 102 |
-
|
|
|
|
| 103 |
# --- FIX: Explicitly move img to the device of img_in's weight if they differ ---
|
| 104 |
# This is the core fix if the mismatch is here
|
| 105 |
if img.device != weight_device:
|
|
|
|
| 99 |
bias_device = self.img_in.bias.device if self.img_in.bias is not None else "N/A (None)"
|
| 100 |
#print(f"self.img_in.weight device: {weight_device}")
|
| 101 |
#print(f"self.img_in.bias device: {bias_device}")
|
| 102 |
+
print("Model img_in weight sample:", self.img_in.weight[0, :10]) # Print first 10 elements of first row
|
| 103 |
+
print("Model img_in bias sample:", self.img_in.bias[:10]) # Print first 10 elements o
|
| 104 |
# --- FIX: Explicitly move img to the device of img_in's weight if they differ ---
|
| 105 |
# This is the core fix if the mismatch is here
|
| 106 |
if img.device != weight_device:
|
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
|
|
|