PyTorch-YOLOv3
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
作者: neverleave0916
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
聯絡資訊:neverleave0916@gmail.com
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
修改日期: 2020/4/11 22:00
- 在Docker上使用PyTorch-YOLOv3
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 軟體版本:
Software |
Version |
Ubunut |
18.04 |
Docker |
18.09.3 |
Nividia Driver |
410.104 |
CUDA |
10.0 |
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Using Pytorch-YOLOv3 on Docker
Step 1: 建立Docker容器
Run the commands below to create a docker container,
replacing {user_name}
with your user name(directory)
replacing {port}
with the external port you wish to use.
replacing {your_container_name}
with your container name
Usage
Options
Step 2: 安裝環境
Step 3: 取得檔案
In your host browser, turn on the jupyter notebook interface via copying and pasting the URLs on the message, but replacing the ip such as the example (69886b134214 or 127.0.0.1) with 120.113.173.215.
Step 5: 更新requirement.txt
使用jupyter notebook開啟requirement.txt,並將tensorflow更新為以下代碼:
Step 6: 更新conda
原因:PackagesNotFoundError: The following packages are not available from current channels:
Step 7: 安裝環境
使用conda安装requirement.txt指定的依赖包
Step 8: 下載權重
Step 9: 下載COCO Data Set
Step 10: 將Pillow由7.0降版到6.2.1
原因:ew Pillow version (7.0.0) breaks torchvision (ImportError: cannot import name 'PILLOW_VERSION' from 'PIL')
Step 11: 測試 GPU 能否被 PyTorch 調用
若最後輸出false
請檢查環境與GPU驅動版本
Step 12: Test
Step 13: Inference
Step 14: Train
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
常見問題
1. Jupyter-notebook無回應
將tornado由6.x降版
原因:jupyter notebook connecting to kernel problem
2. 在jupyter-notebook中執行 .py
使用此方法可執行detected檔案(不在github中,自行在jupyter notebook建立)
3. python(.py) 和 ipython notebook (.ipynb) 互轉
參考資料:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
其他(僅供參考)
錯誤(測試作法)
開始執行後,安裝環境時若出現
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ejg24h9w/matplotlib/
他是用anaconda 所以要用conda升級python