Skip to content

Commit 42df5e3

Browse files
authored
fix path
1 parent dd61372 commit 42df5e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
device = torch.device(f"cuda:{local_rank}")
2424
torch.cuda.set_device(device)
2525

26+
output_dir = args.checkpoint
2627
if args.class_cond:
27-
output_dir = 'powc2i'
2828
config = OmegaConf.load(f"{output_dir}/config.yaml")
2929
model = config_utils.instantiate_from_config(config.model).to(device)
3030
print(f"Num of parameters: {sum(p.numel() for p in model.parameters() if p.requires_grad)}")
@@ -34,7 +34,6 @@
3434
resolution = 256
3535
NUM_EXAMPLES = 4
3636
else:
37-
output_dir = 'powt2i'
3837
config = OmegaConf.load(f"{output_dir}/config.yaml")
3938
model = config_utils.instantiate_from_config(config.model).to(device)
4039
print(f"Num of parameters: {sum(p.numel() for p in model.parameters() if p.requires_grad)}")

0 commit comments

Comments
 (0)