MMDetection 의 마스크 모델 샘플본을 사용하여 back-end 및 front-end 를 구현
- MMDetection 2.10.0
-
*.py Download
https://github.com/open-mmlab/mmdetection/tree/master/configs/cascade_rcnn
-
*.pth Download
- *.py와 동일한 모델의 pth 파일을 다운로드 수행
https://download.openmmlab.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_r50_fpn_1x_coco/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth
-
checkpoints 저장
- pth 파일을 backend/catdog/ai/checkpoints 하위에 저장
- https://mmdetection.readthedocs.io/en/latest/api.html
- Python 3.7.4
built with
- VSCODE
-
VSCODE 에서
PROJECT_CATDOG_PREDICT
프로젝트 폴더 열고Terminal - New Terminal
메뉴로 터미널 접속{workspace}\PROJECT_CATDOG_PREDICT
프로젝트 폴더 생성 후 진행
-
python 가상환경 생성
-
생성 경로는 AIDM 프로젝트 폴더 내에 생성
-
python -m venv {venv_name}
-
-
python 가상환경 실행
{venv_name}\Scripts\activate
python -m pip install --upgrade pip
-
python 라이브러리 설치
- 인공지능 라이브러리
pip install torch==1.8.1+cu102 torchvision==0.9.1+cu102 torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html
pip install mmdet==2.14.0
- Django 라이브러리
pip install django==3.2.2
pip install django-allauth==0.44.0
asgiref==3.5.1 certifi==2021.10.8 cffi==1.15.0 charset-normalizer==2.0.12 cryptography==37.0.2 cycler==0.11.0 Cython==0.29.28 defusedxml==0.7.1 Django==3.2.2 django-allauth==0.44.0 django-cors-headers==3.7.0 django-rest-auth==0.9.5 django-sslserver==0.22 djangorestframework==3.13.1 djangorestframework-simplejwt==4.6.0 fonttools==4.33.3 idna==3.3 kiwisolver==1.4.2 matplotlib==3.5.2 mmdet==2.14.0 numpy==1.21.6 oauthlib==3.2.0 packaging==21.3 Pillow==9.1.0 pycocotools-windows==2.0.0.2 pycparser==2.21 PyJWT==2.4.0 pyparsing==3.0.9 python-dateutil==2.8.2 python3-openid==3.2.0 pytz==2022.1 requests==2.27.1 requests-oauthlib==1.3.1 six==1.16.0 sqlparse==0.4.2 terminaltables==3.1.10 torch==1.8.1+cu102 torchaudio==0.8.1 torchvision==0.9.1+cu102 typing_extensions==4.2.0 urllib3==1.26.9
- 인공지능 라이브러리
-
실행 방법
- console 접속
${classPath}/venv/Script/activate cd backend py manage.py runserver
- React 17.0.2
built with
- VSCODE
-
package 설치
npm install
-
실행 방법
npm start
© mizzleaa