- Pytorch for building the model
- Streamlit for building the web application
- Heroku for deploying the web application
The path files for the models trained on landscapes, people, fruits, and animals are available as landscapes.pth, people.pth, fruits.pth and animals.pth.
- Clone the repository with
git clone https://gitlab.com/twishabansal/image-colourisation.git
- Open
image-colourization-starter.ipynb
. - To load a particular path file in your notebook, run -
def load_checkpoint(filepath):
model = Encoder_Decoder()
checkpoint = torch.load(filepath)
model.load_state_dict(checkpoint['state_dict'])
return model
model = load_checkpoint(filepath)
- Clone the repository with
git clone https://gitlab.com/twishabansal/image-colourisation.git
- Documented Code for the model is available in the repository as
image-colourization-starter.ipynb
as an IPython notebook. - Refer to the code written to process the data, define the model, train it, and finally get a prediction.
The following datasets were used to train the respective models-
- Animals10
- Arthropod Taxonomy Orders Object Detection Dataset
- Animal Faces
- African Wildlife
- Animals Dataset
- The Oxford-IIIT Pet Dataset
- Clone the repository with
https://github.com/Priyansi/image-colouriser-streamlit.git
- To install Streamlit -
pip install streamlit
- To run the app on
http://localhost:8501
runstreamlit run app/app.py
All rights reserved. Licensed under the MIT License.