manbeast3b commited on
Commit
6ed84fc
·
verified ·
1 Parent(s): f90950e

Update src/loss.py

Browse files
Files changed (1) hide show
  1. 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"); image_count+=1;count=0;
122
- if timestep==1: print("starting"); image_count+=1;count=0;
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]=[]