Skip to content

Commit

Permalink
Fix: repeated step: emb hour
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Santa Cruz Lopez committed Oct 3, 2023
1 parent 7f72e44 commit 207c7e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deepr/validation/generate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,9 @@ def predict_xr(
"sample) at low-res & high-res orography.",
}
elif isinstance(model, cDDPMPipeline):
hour_emb = get_hour_embedding(times[:, :1], "class", 24).to(model.device)
prediction = model(
images=era5,
class_labels=hour_emb,
class_labels=times[:, :1].to(model.device),
eta=config["eta"],
num_inference_steps=config["inference_steps"],
generator=torch.manual_seed(config.get("seed", 2023)),
Expand Down

0 comments on commit 207c7e0

Please sign in to comment.