manbeast3b commited on
Commit
bb312c6
·
verified ·
1 Parent(s): e98e299

Update src/loss.py

Browse files
Files changed (1) hide show
  1. src/loss.py +1 -1
src/loss.py CHANGED
@@ -96,7 +96,7 @@ class LossScheduler:
96
  if timestep==A.timesteps[0]: print("resetting"); image_count+=1;count=0;
97
  if A.t_prev==-1:A.xT=sample
98
  A.e_prev.append(model_output)
99
- if timestep==A.timesteps[-1]:
100
  with torch.enable_grad():
101
  orig_output = torch.load(f"/home/mbhat/edge-maxxing/miner/miner/latents/latent_orig_{image_count}_20.pth")
102
  A.optimizer.zero_grad()
 
96
  if timestep==A.timesteps[0]: print("resetting"); image_count+=1;count=0;
97
  if A.t_prev==-1:A.xT=sample
98
  A.e_prev.append(model_output)
99
+ if timestep==51:
100
  with torch.enable_grad():
101
  orig_output = torch.load(f"/home/mbhat/edge-maxxing/miner/miner/latents/latent_orig_{image_count}_20.pth")
102
  A.optimizer.zero_grad()