Update src/loss.py
Browse files- src/loss.py +2 -2
src/loss.py
CHANGED
|
@@ -118,8 +118,8 @@ class SchedulerWrapper:
|
|
| 118 |
global image_count
|
| 119 |
global count
|
| 120 |
D=sample;E=model_output;A=timestep;
|
| 121 |
-
if timestep==B.timesteps[0]: print("resetting");
|
| 122 |
-
if timestep
|
| 123 |
if B.loss_scheduler is _A:
|
| 124 |
C=B.scheduler.step(E,A,D,**F);A=A.tolist();
|
| 125 |
if A not in B.catch_x:B.catch_x[A]=[];B.catch_e[A]=[];B.catch_x_[A]=[]
|
|
|
|
| 118 |
global image_count
|
| 119 |
global count
|
| 120 |
D=sample;E=model_output;A=timestep;
|
| 121 |
+
if timestep==B.timesteps[0]: print("resetting");
|
| 122 |
+
if timestep: print(timestep);
|
| 123 |
if B.loss_scheduler is _A:
|
| 124 |
C=B.scheduler.step(E,A,D,**F);A=A.tolist();
|
| 125 |
if A not in B.catch_x:B.catch_x[A]=[];B.catch_e[A]=[];B.catch_x_[A]=[]
|