Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,11 +52,11 @@ def get_lora_sd_pipeline(
|
|
52 |
print(f"Parameters changed: {before_params != after_params}")
|
53 |
|
54 |
# Детальное сравнение параметров
|
55 |
-
for
|
56 |
if not torch.equal(param1, param2):
|
57 |
-
print(f"Parameter {
|
58 |
else:
|
59 |
-
print(f"Parameter {
|
60 |
|
61 |
if dtype in (torch.float16, torch.bfloat16):
|
62 |
pipe.unet.half()
|
|
|
52 |
print(f"Parameters changed: {before_params != after_params}")
|
53 |
|
54 |
# Детальное сравнение параметров
|
55 |
+
for i, (param1, param2) in enumerate(zip(before_params, after_params)):
|
56 |
if not torch.equal(param1, param2):
|
57 |
+
print(f"Parameter {i} changed.")
|
58 |
else:
|
59 |
+
print(f"Parameter {i} did not change.")
|
60 |
|
61 |
if dtype in (torch.float16, torch.bfloat16):
|
62 |
pipe.unet.half()
|