Created
November 11, 2025 22:14
-
-
Save SqrtRyan/715bc1cc992e5c4f1139d7b030b7d038 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from rp.git.Figures import film_strip | |
| video_root = "/Users/ryan/CleanCode/Projects/Google2025_Paper/UserStudy/video_pairs_20" | |
| videos = path_join( | |
| video_root, | |
| [ | |
| #"Kittycat Fish.mp4ATI_0071--[Seed 2] Kittycat Fish.mp4", | |
| #"[Failure] Stop Sign Lady_copy6.mp4ATI_0097--[Seed 4370] [Failure] Stop Sign Lady_copy6.mp4", | |
| #"Bichon + Corgi _ Bichon Stay Behind_copy3.mp4ATI_0025--[Seed 7945] Bichon + Corgi _ Bichon Stay Behind_copy3.mp4", | |
| #"Bichon + Corgi _ Corgi Stay Behind.mp4ATI_0053--[Seed 9995] Bichon + Corgi _ Corgi Stay Behind.mp4", | |
| #"Blacks Freeze Camera_copy.mp4ATI_0038--[Seed 1515] Blacks Freeze Camera_copy.mp4", | |
| #"Blacks Freeze Camera.mp4ATI_0000--[Seed 8464] Blacks Freeze Camera.mp4", | |
| #"Boat_ Move Test.mp4ATI_0004--[Seed 6227] Boat_ Move Test.mp4", | |
| #"Candle Grab StopCam.mp4ATI_0065--[Seed 4764] Candle Grab StopCam.mp4", | |
| #"Cheerleader.mp4ATI_0019--[Seed 5819] Cheerleader.mp4", | |
| #"City Biker.mp4ATI_0065--[Seed 9567] City Biker.mp4", | |
| #"Hot Air Baloons_ Slow camera, make baloons rise.mp4ATI_0089--[Seed 875] Hot Air Baloons_ Slow camera, make baloons rise.mp4", | |
| #"Judge_ Walk In From Right + Zoom_copy1.mp4ATI_0045--[Seed 5176] Judge_ Walk In From Right + Zoom_copy1.mp4", | |
| #"Judge_ Walk Out_copy1.mp4ATI_0032--[Seed 5176] Judge_ Walk Out_copy1.mp4", | |
| #"Judge_ Walk Out.mp4ATI_0021--[Seed 8184] Judge_ Walk Out.mp4", | |
| "Motorcycle Chase_ The motorcycle chases the car_copy1.mp4ATI_0074--[Seed 1579] Motorcycle Chase_ The motorcycle chases the car_copy1.mp4", | |
| #"Move the car faster forward.mp4ATI_0099--[Seed 8917] Move the car faster forward.mp4", | |
| #"Reverse Windmills.mp4ATI_0064--[Seed 9651] Reverse Windmills.mp4", | |
| #"Shakycam.mp4ATI_0118--[Seed 9471] Shakycam.mp4", | |
| #"Sora Basketball_ The ball goes into the hoop_copy3.mp4ATI_0071--[Seed 6303] Sora Basketball_ The ball goes into the hoop_copy3.mp4", | |
| #"Truck Before Cab_copy1.mp4ATI_0040--[Seed 5072] Truck Before Cab_copy1.mp4", | |
| #"Truck Before Cab_copy1.mp4ATI_0055--[Seed 5072] Truck Before Cab_copy1.mp4", | |
| ], | |
| ) | |
| frames=[0,14,46] | |
| for i in [3]: | |
| for path in videos: | |
| video=load_video(path,use_cache=True)[:,-480:] | |
| #video=resize_list(video,i) | |
| video=video[frames] | |
| video=split_tensor_into_regions(video,1,1,3) | |
| video=[film_strip(x,vertical=True) for x in video] | |
| video=horizontally_concatenated_images(video) | |
| save_image(video,path+'_film_strip_vertical_%i.png'%i) | |
| display_alpha_image(video) | |
| copy_image_to_clipboard(video) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment