Skip to content

amanjaiswal73892/change_my_pet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Change My Pet


ChangeMyPet provides a deep learning model that is capable of replacing a real dog/cat image with a GAN(Generative adversarial network) generated image with the help of segmentation masks.

Results:



Exciting Gifs:



The results are quite interesting and the model is learning to generate images in the required segment. Regularization and ensembling losses have given more accurate results but we are still exploring other techniques. Our next step is to include Discriminator so that the images generated look more real. Generate a pull request if you want to conrtribute to the project.

Demo

    biggan512-release.pt    # download this for generating 512*512 images
  • Upload the biggan512-release.pt file to your google drive.
  • Open MSE_average_losses_clean.ipynb file in Google Colab or your Jupyter Notebook and run it. Comments are added to the file as needed.

References

paper: https://arxiv.org/abs/1809.11096

https://github.com/ivclab/BIGGAN-Generator-Pretrained-Pytorch

https://pytorch.org/hub/pytorch_vision_fcn_resnet101/

https://pytorch.org/hub/pytorch_vision_deeplabv3_resnet101/

Dependencies

dependencies:

  • python=3.6
  • cudatoolkit=10.0
  • pytorch
  • torchvision
  • scipy

Contact

Please feel free to leave suggestions or comments to ([email protected]).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published