This demo is hosted here.
- create a new conda environment:
conda create --name myenv
- activate the new env:
conda activate myenv
- install all the dependencies
pip install -r requirements.txt
- create your own model on Google Colab with
train.py
and place the .pkl file in the working directory - run the app.py file:
python app.py
You can pick an option that's convenient to you based on the system you are using. If you're using a not so powerful system, you may want to use Colab or Kaggle for GPUs to prevent spending time debugging avoidable/out-of-memory errors.
- sample code from Fast AI course: https://shorturl.at/lyDR8
- another version can be referred here
- use the train.py code from this repo in Google Colab
Once you have trained the model, place the pkl file in the working directory.
This code is compatible with UNIX based systems. If you're running a windows machine and you're getting a NotImplementedError: cannot instantiate 'PosixPath' on your system
, then you may want to refer the another version of the code that's compatible with windows machines. The repo can be downloaded here. Note- This file is ~800 MB and it has a .pth file instead of .pkl file