Skip to content

Commit

Permalink
fix bug of noise sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqiang9 committed May 11, 2023
1 parent 8f8e80d commit 8250c35
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
NUM_CLASSES,
model_and_diffusion_defaults,
# different modes
# create_model_and_diffusion,
create_model_and_diffusion,
# create_model_and_diffusion_acc
create_model_and_diffusion_noise,
# create_model_and_diffusion_noise,
add_dict_to_argparser,
args_to_dict,
)
Expand Down Expand Up @@ -39,10 +39,10 @@ def main():
logger.configure(args.log_dir)

logger.log("creating model and diffusion...")
# different modes
#model, diffusion = create_model_and_diffusion(
# different modes, if noise or acc method, please specify 'data', 'raster', and 'loss'.
model, diffusion = create_model_and_diffusion(
#model, diffusion = create_model_and_diffusion_acc(
model, diffusion = create_model_and_diffusion_noise(
#model, diffusion = create_model_and_diffusion_noise(
**args_to_dict(args, model_and_diffusion_defaults().keys())
)
model.load_state_dict(
Expand Down

0 comments on commit 8250c35

Please sign in to comment.