Skip to content

Commit

Permalink
Merge branch 'main' of github.com:nnaakkaaii/D-3DVRVAE
Browse files Browse the repository at this point in the history
  • Loading branch information
nnaakkaaii committed Jun 27, 2024
2 parents 4b1c795 + 8ad3868 commit bc6298a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion hrdae/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ def main(cfg: DictConfig):
opt.experiment.result_dir
/ opt.experiment.dataloader.__class__.__name__
/ opt.experiment.model.__class__.__name__
/ datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
)
if hasattr(opt.experiment.model, "network"):
opt.experiment.result_dir /= opt.experiment.model.network.__class__.__name__
opt.experiment.result_dir /= datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
save_options(opt, opt.experiment.result_dir)
if (
isinstance(opt.experiment, TrainExpOption)
Expand Down
4 changes: 2 additions & 2 deletions hrdae/models/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def save_reconstructed_images(
)
elif len(original.shape) == 5:
b, _, _, _, _ = original.shape
for bi in range(0, b, 5):
for bi in range(b):
_save_images(
original[bi], # (t, 1, h, w)
reconstructed[bi], # (t, 1, h, w)
Expand All @@ -78,7 +78,7 @@ def save_reconstructed_images(
)
elif len(original.shape) == 6:
b, _, _, d, h, w = original.shape
for bi in range(0, b, 5):
for bi in range(b):
_save_images(
original[bi, :, :, :, :, w // 2], # (t, 1, d, h)
reconstructed[bi, :, :, :, :, w // 2], # (t, 1, d, h)
Expand Down

0 comments on commit bc6298a

Please sign in to comment.