We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd61372 commit 42df5e3Copy full SHA for 42df5e3
app.py
@@ -23,8 +23,8 @@
23
device = torch.device(f"cuda:{local_rank}")
24
torch.cuda.set_device(device)
25
26
+output_dir = args.checkpoint
27
if args.class_cond:
- output_dir = 'powc2i'
28
config = OmegaConf.load(f"{output_dir}/config.yaml")
29
model = config_utils.instantiate_from_config(config.model).to(device)
30
print(f"Num of parameters: {sum(p.numel() for p in model.parameters() if p.requires_grad)}")
@@ -34,7 +34,6 @@
34
resolution = 256
35
NUM_EXAMPLES = 4
36
else:
37
- output_dir = 'powt2i'
38
39
40
0 commit comments