Skip to content

Extracting characters from the simpsons with autorotoscoping

License

Unknown, Unknown licenses found

Licenses found

Unknown
license.md
Unknown
license.jpg
Notifications You must be signed in to change notification settings

ikanreed/SimpsonsExtractor

Repository files navigation

SimpsonsExtractor

Extracting characters from the simpsons with autorotoscoping

Installation and setup

Requirements

Graphics card that supports CUDA 10.2 or higher. The process uses a lot of GPU ram. I can only verify that it works reliably with 6 Gigs of GRAM

I highly highly highly recomend you install anaconda. Trying to install pytorch on windows with pip is awful

Not tested on Linux

STEPS

  1. Install python 3.7 or higher
  2. Install pytorch Cuda is mandatory. If you're computer can't handle cuda, this script will take days to run, AND you'll have to change the source code to tell it to run on the CPU.
  3. run pip install -r requirements.txt
  4. Check out RAFT somewhere on your computer
    1. Open a command prompt and browse to the "core" subfolder of RAFT
    2. run "conda develop ."
    3. Per the instructions on RAFT's readme, download the pretrained models
    4. Whever you extracted raft-sintel.pth to, change the initModel(self) method of the RaftMaskMaker class in torchmotion.py. (currently line 181)
  5. Go to wherever you checked this project out, and run "conda develop ."

Usage

python -m extractchar [filename] Produces 3 outputs,

  1. Motion-segment-segments-[name].mp4, which has a graphical representation of the segmentation of the video and which ones are used in creating the motion mask
  2. Motion-segment-mask-[name].mp4, the mask that is used to cut out the output. NOTE that this includes BOTH the segments AND the output of RAFT. Useful if you want to clean it up.
  3. Motion-segment-extracted-[name].mp4. The input file cut to the shape of the mask.

About

Extracting characters from the simpsons with autorotoscoping

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
license.md
Unknown
license.jpg

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages