Using Pytorch with Django To distinguish Cats from Dogs by Fine Tuning pretrained Model.
-
First clone(use git lfs clone command, git clone will also work but you will get stats of file downloading with git lfs) the repository in your system.
git lfs clone https://github.com/NikamRohan/Cats-vs-Dogs.git
-
Then Change Directory to News-Aggregator.
cd Cats-vs-Dogs
-
Then start Virtual Environment within current Directory.
virtualenv virtual_environment_name
virtual_environment_name\Scripts\activate
-
Then install the dependencies from requirements.txt.
pip install -r requirements.txt
-
Then Apply Migrations.
python manage.py makemigrations
python manage.py migrate
-
Execute the manage.py file to runserver.
python manage.py runserver
-
Then Goto your favourite Browser and Type in localhost:8000.
-
Now you should be able to navigate through the website and explore its features.
Home Page To upload Images
Page For Displaying Prediction of Model