Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_pytorch
Commits
44d7445c
Commit
44d7445c
authored
Apr 03, 2023
by
panning
Browse files
更新readme
parent
c30fc93e
Pipeline
#166
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+3
-3
No files found.
README.md
View file @
44d7445c
...
...
@@ -34,7 +34,7 @@ pip3 install -r requirements.txt
```
export HIP_VISIBLE_DEVICES=0
python3
m
ain
_acc
.py --batch-size=64 --arch=resnet50 -j 6 --epochs=90 --save-path=/path/to/{save_model_dir} /path/to/{ImageNet_pytorch_data_dir}/
python3
tr
ain.py --batch-size=64 --arch=resnet50 -j 6 --epochs=90 --save-path=/path/to/{save_model_dir} /path/to/{ImageNet_pytorch_data_dir}/
```
其中,'/path/to/{save_model_dir}' 修改为model 想要保存的路径,'/path/to/{ImageNet_pytorch_data_dir}/'修改为ImageNet数据集所在路径,后续混合精度训练与多卡训练脚本修改相同,不再说明。
...
...
@@ -43,7 +43,7 @@ python3 main_acc.py --batch-size=64 --arch=resnet50 -j 6 --epochs=90 --save-path
```
export HIP_VISIBLE_DEVICES=0
python3
m
ain
_acc
.py --batch-size=64 --arch=resnet50 -j 6 --epochs=90 --amp --opt-level O1 --loss-scale=dynamic --save-path=/path/to/{save_model_dir} /path/to/{ImageNet_pytorch_data_dir}/
python3
tr
ain.py --batch-size=64 --arch=resnet50 -j 6 --epochs=90 --amp --opt-level O1 --loss-scale=dynamic --save-path=/path/to/{save_model_dir} /path/to/{ImageNet_pytorch_data_dir}/
```
### 单机四卡测试(单精度)
...
...
@@ -63,4 +63,4 @@ mpirun --allow-run-as-root --bind-to none -np 4 scrips/single_process.sh localho
# 参考
https://github.com/pytorch/examples/tree/master/imagenet
\ No newline at end of file
https://github.com/pytorch/examples/tree/master/imagenet
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment