Train YOLOv7 example: https://youtu.be/-QWxJ0j9EY8
- Links for torch:
https://download.pytorch.org/whl/torch/
- Links for torchvision:
https://download.pytorch.org/whl/torchvision/
- example( PYTHON == 3.9, NVIDIA CUDA == 10.2, Windows X64 ):
torch download : torch-1.10.2+cu102-cp39-cp39-win_amd64.whl
torchvision download : torchvision-0.11.3+cu102-cp39-cp39-win_amd64.whl
- Installer can be downloaded here:
https://github.com/UB-Mannheim/tesseract/wiki
- Install language pack
./tessdata -> (the default path )C:\Program Files\Tesseract-OCR\tessdata
- Environment configuration
Add [TESSDATA_PREFIX] environment variable
.C:\Program Files\Tesseract-OCR\tessdata
Environment variable PATH added
.C:\Program Files\Tesseract-OCR\tessdata
.C:\Program Files\Tesseract-OCR
$ pip install -r requirements.txt
$ pip install { torch download file path }
$ pip install { torchvision download file path }
PyTorch版本1.10,安裝完tensorboard後運行代碼時出現錯誤:AttributeError: module 'distutils' has no attribute 'version'。
$ pip uninstall setuptools
$ pip install setuptools==59.5.0
redis-server.exe redis.windows.conf
如果出現 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
$ redis-cli.exe
127.0.0.1:6379> shutdown
not connected> exit
redis-server.exe redis.windows.conf
$ celery -A app.celery.tasks worker --loglevel=INFO -P eventlet
# In the case of the initial run or when you need to reset the database
$ python manage.py init_db
# To run the application
$ python manage.py runserver