git clone https://github.com/vinamramunot-tech/deep-learning-sandbox.git
cd deep-learning-sandbox
git lfs install
git lfs fetch
git lfs checkout
- Run
pip install -r requirements.txt
- Run with Python3
python build.py
orpython3 build.py
### Linux Installation
1. `pip3 install torch==1.8.0+cpu -f https://download.pytorch.org/whl/torch_stable.html` or `pip install torch==1.8.0+cpu -f https://download.pytorch.org/whl/torch_stable.html`
### MacOS Installation
1. `brew install ffmpeg`
2. `pip3 install torch`
### Windows Installation
1. Install package manager chocolatey from https://chocolatey.org/install
2. `choco install ffmpeg`
3. `pip3 install torch==1.8.0+cpu -f https://download.pytorch.org/whl/torch_stable.html` or `pip install torch==1.8.0+cpu -f https://download.pytorch.org/whl/torch_stable.html`
- Create a
.env
file inside of thesrc
folder - Reference
env_example.txt
- Edit
SERVER_IP=YOUR_IP
andSERVER_PORT=YOUR_PORT
in the.env
file with the correct ip of the machine and the port number of your choice
# .env
YOLO_THRESHOLD='0.1'
SOCKETIO_ASYNC_MODE=threading
MONGO_CONNECTION='mongodb+srv://<username>:<password>@cluster0.vypct.mongodb.net/test?retryWrites=true&w=majority'
SERVER_IP=YOUR_IP
SERVER_PORT=YOUR_PORT
Please replace the word "server-ip" with the ip address of the machine where the app will run in all of the steps below. Once you complete the setup for creating pem files using the above line, the name of the two files server-ip.pem and server-ip-key.pem will be replaced with the ip address.
- Run
./install_dependencies.sh
git clone https://github.com/FiloSottile/mkcert && cd mkcert
go build -ldflags "-X main.Version=$(git describe --tags)"
./mkcert "server-ip"
cd ..
cd Senior-Capstone-Project
cp ../mkcert/server-ip.pem ../mkcert/server-ip-key.pem .
choco install mkcert
- Change your directory to
Senior-Capstone-Project
.\mkcert "server-ip"
Install Go Lang for these steps Go Lang
git clone https://github.com/FiloSottile/mkcert && cd mkcert
go build -ldflags "-X main.Version=$(git describe --tags)"
.\mkcert "server-ip"
- Copy the files
server-ip-key.pem
andserver-ip.pem
intoSenior-Capstone-Project
brew install mkcert
cd Senior-Capstone-Project
mkcert "server-ip"
Install Go Lang for these steps Go Lang
git clone https://github.com/FiloSottile/mkcert && cd mkcert
go build -ldflags "-X main.Version=$(git describe --tags)"
./mkcert "server-ip"
cd ..
cd Senior-Capstone-Project
cp ../mkcert/server-ip.pem ../mkcert/server-ip-key.pem .
- Run with Python3
python main.py
orpython3 main.py