文件最后提交记录最后更新时间
!156 [南京大学][高校贡献][Pytorch][RetinaMask]--初次提交 * init RetinaMask 4 年前
!4685 [fix] 修改算子调用方式 * fix code clean all_py about Operator modification * fix code clean * fix op way first 2 年前
!4671 【fix】批量修改模型python版本,兼容环境上的python3.8版本 * fix python version 3 年前
!156 [南京大学][高校贡献][Pytorch][RetinaMask]--初次提交 * init RetinaMask 4 年前
!156 [南京大学][高校贡献][Pytorch][RetinaMask]--初次提交 * init RetinaMask 4 年前
!5200 RefineDet、RetinaMask、RetinaNet 模型公网地址整改 * 局部变量名小写 * RefineDet、RetinaMask、RetinaNet 模型公网地址整改 2 年前
!156 [南京大学][高校贡献][Pytorch][RetinaMask]--初次提交 * init RetinaMask 4 年前
fix link validity Co-authored-by: frozenleaves<914814442@qq.com> # message auto-generated for no-merge-commit merge: !7517 merge master into master fix link validity Created-by: frozenn Commit-by: frozenleaves Merged-by: ascend-robot Description: ## Motivation Please describe the motivation of this PR and the goal you want to achieve through this PR. ## Modification Please briefly describe what modification is made in this PR. ## Self-test (Optional) If modifications to this PR may cause/fix function/accuracy/performance DTSs/issues, a self-inspection record needs to be attached. ## BC-breaking (Optional) If there are compatibility issues, such as dependencies on cann/torch_npu versions, they need to be explained in the PR. ## Checklist **Before PR**: - [ ] The new code needs to comply with the Clean Code specification. - [ ] The PR content is self-checked, and the expression can be clear and the writing standardized **After PR**: - [ ] CLA has been signed and all committers have signed the CLA in this PR. - [ ] The ci-pipeline is passed, Code Check is passed. See merge request: Ascend/ModelZoo-PyTorch!75171 个月前
!156 [南京大学][高校贡献][Pytorch][RetinaMask]--初次提交 * init RetinaMask 4 年前
README.md

Before running

  • install numactl:
apt-get install numactl # for Ubuntu
yum install numactl # for CentOS
  • get R-50.pkl:
mkdir -p /root/.torch/models/
wget https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/MSRA/R-50.pkl
mv R-50.pkl /root/.torch/models/
  • ln -s dataset:
mkdir ./dataset
ln -snf path_to_coco ./dataset/coco
  • other requirements:
pip3 install torchvision==0.2.1

# other recommended requirements
apex==0.1+ascend.20220315
torch==1.5.0+ascend.post5.20220315
  • source env and build:
source test/env_npu.sh

Running

  • To train:
# 1p train full
bash test/train_full_1p.sh --data_path=./dataset/

# 1p train perf
bash test/train_performance_1p.sh --data_path=./dataset/

# 8p train full
bash test/train_full_8p.sh --data_path=./dataset/

# 8p train perf
bash test/train_performance_8p.sh --data_path=./dataset/
  • To evaluate:
bash test/train_eval_1p.sh --data_path=./dataset/ --weight_path=./model_0044999.pth  # for example

Result

1p batch_size == 8,8p batch_size == 64

NAME Steps BBOX-MAP SEGM-MAP FPS
GPU-1p 360000 - - 8.7
GPU-8p 20000 29.0 25.7 55.1
NPU-1p 400 - - 4.6
NPU-8p 20000 28.8 25.7 34.8

公网地址说明

代码涉及公网地址参考 public_address_statement.md