Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/vae/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def main():
)

# == save samples ==
if is_main_process() and save_dir is not None:
if save_dir is not None:
for idx, x_orig in enumerate(x):
fname = os.path.splitext(os.path.basename(path[idx]))[0]
save_path_orig = os.path.join(save_dir_orig, f"{fname}_orig")
Expand Down