manbeast3b commited on
Commit
44e4f74
1 Parent(s): 6792b92

Update src/loss.py

Browse files
Files changed (1) hide show
  1. src/loss.py +1 -1
src/loss.py CHANGED
@@ -23,7 +23,7 @@ class LossScheduler:
23
  else:A.t_prev=B
24
  return C,
25
  class SchedulerWrapper:
26
- def __init__(A,scheduler,loss_params_path='loss_params.pth'):A.scheduler=scheduler;A.catch_x,A.catch_e,A.catch_x_={},{},{};A.loss_scheduler=_A;A.loss_params_path=loss_params_path
27
  def set_timesteps(A,num_inference_steps,**C):
28
  D=num_inference_steps
29
  if A.loss_scheduler is _A:B=A.scheduler.set_timesteps(D,**C);A.timesteps=A.scheduler.timesteps;A.init_noise_sigma=A.scheduler.init_noise_sigma;A.order=A.scheduler.order;return B
 
23
  else:A.t_prev=B
24
  return C,
25
  class SchedulerWrapper:
26
+ def __init__(A,scheduler,loss_params_path='loss_params_update_new.pth'):A.scheduler=scheduler;A.catch_x,A.catch_e,A.catch_x_={},{},{};A.loss_scheduler=_A;A.loss_params_path=loss_params_path
27
  def set_timesteps(A,num_inference_steps,**C):
28
  D=num_inference_steps
29
  if A.loss_scheduler is _A:B=A.scheduler.set_timesteps(D,**C);A.timesteps=A.scheduler.timesteps;A.init_noise_sigma=A.scheduler.init_noise_sigma;A.order=A.scheduler.order;return B