Skip to content

VirtuallyJesse/ai-rotoscoping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roto Studio Banner

SAM Roto Studio

AI-assisted rotoscoping in Google Colab. High-quality alpha mattes with no effort, saving you time.

Open In Colab   License


Demo

All outputs are untouched — straight from the pipeline.

Difficulty: 🟦⬜⬜⬜⬜ Very Easy
Input Conditions: motion blur

demo_1.mp4

Difficulty: 🟩🟩⬜⬜⬜ Easy
Input Conditions: low contrast, color blending

demo_2.mp4

Difficulty: 🟨🟨🟨⬜⬜ Medium
Input Conditions: kinetic motion, frame-edge clipping, temporary object occlusion

demo_3.mp4

Difficulty: 🟧🟧🟧🟧⬜ Hard
Input Conditions: very low contrast, color blending, fine hair

demo_4.mp4

Difficulty: 🟥🟥🟥🟥🟥 Very Hard
Input Conditions: low contrast, multiple objects, objects overlapping

demo_5.mp4

Quick Start

Open In Colab

  1. Click the Colab badge above to open the project
  2. Run both cells to install then launch
  3. Upload your footage and pick a tool
  4. Download your alpha sequence or composited result

That's it. No local setup. No terminal commands.


Tools

Tool Best For How It Works
InSPyReNet Salient subjects, good contrast Fully automatic — no prompts needed
MatAnyone More control, faster results Single SAM prompt → auto-propagation
SAM + ViTMatte Complex motion, low contrast SAM tracking → edge refinement

💡 Tip: Results vary by footage, A/B test to find the cleanest matte.
SAM + ViTMatte is typically the most consistent.


Tutorial

Full walkthrough from zero to compositing.

Watch the Tutorial

Click to watch on YouTube (3 min)


SAM 3 Access

SAM 3 is included and fully functional, but the model weights require approval.

How to get access (5 min)
  1. Go to facebook/sam3 on Hugging Face
  2. Click "Agree and access repository" (requires HF account)
  3. Use AI researcher and a United States University for guaranteed form approval. (short wait)
  4. In Colab, paste your huggingface_token when prompted

License

MIT — use freely, attribution appreciated!


Support Me on Ko-fi
Made with ❤️ by VirtuallyJesse

About

Free AI rotoscoping tool for automatic video background removal. Generate high-quality alpha mattes using SAM 2/3, ViTMatte, MatAnyone & InSPyReNet. Runs entirely in Google Colab — no local setup required.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors