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
MobileNetV2_pytorch
Commits
397c4d63
Commit
397c4d63
authored
Mar 18, 2025
by
Sugon_ldc
Browse files
modify readme
parent
a09ab01d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
README.md
README.md
+6
-0
No files found.
README.md
View file @
397c4d63
...
@@ -20,6 +20,8 @@ MobileNetV2 通过使用倒置残差结构和深度可分离卷积,有效减
...
@@ -20,6 +20,8 @@ MobileNetV2 通过使用倒置残差结构和深度可分离卷积,有效减
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.1.0-py3.10-dtk24.04.3-ubuntu20.04
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.1.0-py3.10-dtk24.04.3-ubuntu20.04
docker run -it --name docker_name -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal:/opt/hyhal:ro --network=host --shm-size=32G --privileged=true --device=/dev/kfd --ipc=host --device=/dev/dri/ --group-add video image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.1.0-py3.10-dtk24.04.3-ubuntu20.04 /bin/bash
docker run -it --name docker_name -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal:/opt/hyhal:ro --network=host --shm-size=32G --privileged=true --device=/dev/kfd --ipc=host --device=/dev/dri/ --group-add video image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.1.0-py3.10-dtk24.04.3-ubuntu20.04 /bin/bash
pip install -r requirements.txt
```
```
### Dockerfile(方法二)
### Dockerfile(方法二)
此处提供dockerfile的使用方法
此处提供dockerfile的使用方法
...
@@ -27,6 +29,8 @@ docker run -it --name docker_name -v /path/your_code_data/:/path/your_code_data/
...
@@ -27,6 +29,8 @@ docker run -it --name docker_name -v /path/your_code_data/:/path/your_code_data/
cd ./docker
cd ./docker
docker build --no-cache -t mobilenetv2:1.0 .
docker build --no-cache -t mobilenetv2:1.0 .
docker run -it -v /path/your_code_data/:/path/your_code_data/ --shm-size=32G --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name docker_name imageID /bin/bash
docker run -it -v /path/your_code_data/:/path/your_code_data/ --shm-size=32G --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name docker_name imageID /bin/bash
pip install -r requirements.txt
```
```
### Anaconda(方法三)
### Anaconda(方法三)
此处提供本地配置、编译的详细步骤,例如:
此处提供本地配置、编译的详细步骤,例如:
...
@@ -58,11 +62,13 @@ pip install scikit-learn
...
@@ -58,11 +62,13 @@ pip install scikit-learn
### 单机多卡
### 单机多卡
```
```
mkdir logs #若已经创建不需要重新创建
mkdir logs #若已经创建不需要重新创建
export HIP_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
python -m torch.distributed.launch --nproc_per_node=8 driver.py
python -m torch.distributed.launch --nproc_per_node=8 driver.py
```
```
### 单机单卡
### 单机单卡
```
```
export HIP_VISIBLE_DEVICES=0
mkdir logs #若已经创建不需要重新创建
mkdir logs #若已经创建不需要重新创建
python driver.py
python driver.py
```
```
...
...
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