46 Star 499 Fork 1.3K

Ascend/ModelZoo-PyTorch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Squeezenet1_1

This implements training of Squeezenet1_1 on the ImageNet dataset, mainly modified from pytorch/examples.

Squeezenet1_1 Detail

As of the current date, Ascend-Pytorch is still inefficient for contiguous operations. Therefore, Squeezenet1_1 is re-implemented using semantics such as custom OP. For details, see models/Squeezenet.py .

Requirements

  • Install PyTorch (pytorch.org)
  • pip install -r requirements.txt Note: pillow recommends installing a newer version. If the corresponding torchvision version cannot be installed directly, you can use the source code to install the corresponding version. The source code reference link: https://github.com/pytorch/vision, Suggestion the pillow is 9.1.0 and the torchvision is 0.6.0
  • Download the ImageNet dataset from http://www.image-net.org/

Training

To train a model, run main.py or main_8p.py with the desired model architecture and the path to the ImageNet dataset:


# O2 training 1p
bash scripts/run_1p.sh

# O2 training 8p
bash scripts/run_8p.sh

Squeezenet1_1 training result

Acc@1 FPS Npu_nums Epochs AMP_Type
- 384 1 240 O2
58.54 1963 8 240 O2

公网地址说明

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

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/ascend/ModelZoo-PyTorch.git
git@gitee.com:ascend/ModelZoo-PyTorch.git
ascend
ModelZoo-PyTorch
ModelZoo-PyTorch
master

搜索帮助