Skip to content

Run for Garfield comics dataset. Preprocessing involves using PixelAnnotation tool to create training masks. Unet (Pytorch) was run to segment the data on an NVIDIA RTX2070 8GB GPU

License

Notifications You must be signed in to change notification settings

rhnkrnwt/Cartoon-entity-extraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cartoon-entity-extraction

Run for Garfield comics dataset. Preprocessing involves using PixelAnnotation tool to create training masks. Unet (Pytorch) was run to segment the data on an NVIDIA RTX2070 8GB GPU

Installations:

  • Python 3.6
  • pip install requirements.txt
  • CUDA 10.2, cuDNN
  • Download checkpoint from here.

References:

Dataset:

Training:

  • Edit data loader and filepaths and run python3 train.py

Running Inference:

src = '/path/to/test_images'
tgt = '/path/to/saved_images'
for image in os.listdir(src): 
    os.system("python predict.py -i " + src + image + " -o " + tgt + image + " --model checkpoints/CP_epoch45.pth") 

Results:

Garfield

Jon

Bubbles

About

Run for Garfield comics dataset. Preprocessing involves using PixelAnnotation tool to create training masks. Unet (Pytorch) was run to segment the data on an NVIDIA RTX2070 8GB GPU

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published