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
| ╭─── Claude Code v2.0.73 ──────────────────────────────────────────────────────────────────────────────╮ | |
| │ │ Tips for getting started │ | |
| │ Welcome back! │ Run /init to create a CLAUDE.md file with instructions for Claude │ | |
| │ │ ───────────────────────────────────────────────────────────────── │ | |
| │ * ▐▛███▜▌ * │ Recent activity │ | |
| │ * ▝▜█████▛▘ * │ No recent activity │ | |
| │ * ▘▘ ▝▝ * │ │ | |
| │ │ │ | |
| │ Opus 4.5 · API Usage Billing │ │ |
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
| import rp | |
| from google import genai | |
| from google.genai.types import ( | |
| GenerateContentConfig, | |
| Modality, | |
| ThinkingConfig, | |
| ImageConfig, | |
| ) | |
| import os |
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
| url = "https://huggingface.co/datasets/OneOverZero/Calvin__task_ABC_D_h5__training_s224_h" | |
| dataset_parent = "/" | |
| clone_command = f""" | |
| cd {dataset_parent} | |
| git lfs install | |
| git clone {url} | |
| """ # sh | |
| dataset_folder = path_join(dataset_parent, get_folder_name(url)) | |
| if not folder_exists(dataset_folder): | |
| r._run_sys_command(clone_command) |
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
| def film_strip(video, length=None, height=None, width=None, vertical=False): | |
| """ | |
| Create a film strip effect from a video sequence. | |
| Args: | |
| video: List of video frames/images | |
| length: Optional number of frames to use (defaults to all frames) | |
| height: Height to resize frames to (default: 480) | |
| width: Width to resize frames to (default: 720) | |
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
| #CYCLESORT!!! | |
| def swap(a,i,j): | |
| a[i],a[j]=a[j],a[i] | |
| class Counted: | |
| def __repr__(self): | |
| return 'X' | |
| X=Counted() | |
| a=shuffled([3,1,7,8,8,3,3,3,2,4,5,5,0]) |
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.film_strip.film_strip import film_strip | |
| video = "/Users/ryan/CleanCode/Projects/Google2025_Paper/OverleafGit/figures_src/windmill_chase.mp4" | |
| video = load_video(video, use_cache=True) | |
| video = as_float_images(video) | |
| # video=mean(video[:-3],video[1:-2],video[2:-1],video[3:]) | |
| before, after = split_tensor_into_regions(video, 1, 1, 2) | |
| frames = [0, 5, 10] |
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.film_strip.film_strip import film_strip | |
| video='/Users/ryan/CleanCode/Projects/Google2025_Paper/OverleafGit/figures_src/CatFish.mp4' | |
| video=load_video(video, use_cache=True) | |
| for vert in [True,False]: | |
| before=video[:,80:,:720] | |
| after=video[:,80:,-720:] | |
| #display_video(after) | |
| frames=[0,25,46] |
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.film_strip.film_strip import film_strip | |
| video='/Users/ryan/CleanCode/Projects/Google2025_Paper/OverleafGit/figures_src/CatFish.mp4' | |
| video=load_video(video, use_cache=True) | |
| before=video[:,80:,:720] | |
| after=video[:,80:,-720:] | |
| display_video(after) | |
| frames=[0,25,44] | |
| vert=True |
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.film_strip.film_strip import film_strip | |
| video='/Users/ryan/CleanCode/Projects/Google2025_Paper/OverleafGit/figures_src/download - 2025-07-02T172224.702.mp4' | |
| video=load_video(video,use_cache=True) | |
| before=video[:,65:-40,:720] | |
| after=video[:,65:-40,-720:] | |
| frames=[0,30,44] | |
| vert=True | |
| before=film_strip(before[frames],vertical=vert) |
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
| https://gist.github.com/SqrtRyan/1d0a88afcb761021c21e0c7093ff7638 |
NewerOlder