Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: adds details to video file name generation #396

Closed
wants to merge 1 commit into from
Closed
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
feature: adds details to video file name generation
adds seed, model, and original image name into video file name
  • Loading branch information
jaydrennan authored and jaydrennan committed Nov 23, 2023
commit 4909c8f48abbe04006fc9c233023c70185f31af0
4 changes: 3 additions & 1 deletion imaginairy/video_sample.py
Original file line number Diff line number Diff line change
@@ -186,7 +186,9 @@

os.makedirs(output_folder, exist_ok=True)
base_count = len(glob(os.path.join(output_folder, "*.mp4")))
video_path = os.path.join(output_folder, f"{base_count:06d}.mp4")
input_file_name = os.path.basename(input_img_path)
video_path = os.path.join(output_folder, f"{base_count:06d}_{model_name}_{str(seed)}_{input_file_name}.mp4")

Check failure on line 190 in imaginairy/video_sample.py

GitHub Actions / lint

[*] Use explicit conversion flag

writer = cv2.VideoWriter(
video_path,
cv2.VideoWriter_fourcc(*"MP4V"),
Loading