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
zwq330205812
Seresnet50_mmcv
Commits
cd1c52c5
Commit
cd1c52c5
authored
Dec 07, 2023
by
sunxx1
Browse files
更新readme
parent
a7b1a4d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
6 deletions
+54
-6
README.md
README.md
+34
-6
docker/Dockerfile
docker/Dockerfile
+5
-0
docker/requirements.txt
docker/requirements.txt
+15
-0
No files found.
README.md
View file @
cd1c52c5
...
...
@@ -6,13 +6,13 @@ Squeeze-and-Excitation Networks
-
https://arxiv.org/pdf/1709.01507.pdf
## 模型
介绍
## 模型
结构
SE-ResNet50是一种基于残差网络(ResNet)和注意力机制(SE)的深度卷积神经网络模型,是由微软亚洲研究院提出的,是一种高效、快速、准确的图像分类模型,具有广泛的应用前景。

##
模型结构
##
算法原理
Seresnet50的整体结构包括基础网络部分和Squeeze-and-Excitation(SE)模块。
...
...
@@ -20,15 +20,43 @@ Seresnet50的整体结构包括基础网络部分和Squeeze-and-Excitation(SE)
## 环境配置
### Docker
### Docker
**(方法一)**
```
python
git
clone
--
recursive
http
:
//
developer
.
hpccube
.
com
/
codes
/
modelzoo
/
seresnet50_mmcv
.
git
docker
pull
image
.
sourcefind
.
cn
:
5000
/
dcu
/
admin
/
base
/
pytorch
:
1.10
.
0
-
centos7
.
6
-
dtk
-
22.10
.
1
-
py37
-
latest
# <your IMAGE ID>用以上拉取的docker的镜像ID替换
docker
run
--
shm
-
size
10
g
--
network
=
host
--
name
=
nit
-
pytorch
--
privileged
--
device
=/
dev
/
kfd
--
device
=/
dev
/
dri
--
group
-
add
video
--
cap
-
add
=
SYS_PTRACE
--
security
-
opt
seccomp
=
unconfined
-
v
$
PWD
/
Seresnet50_mmcv
:
/
home
/
Seresnet50_mmcv
-
it
<
your
IMAGE
ID
>
bash
docker
run
--
shm
-
size
10
g
--
network
=
host
--
name
=
nit
-
pytorch
--
privileged
--
device
=/
dev
/
kfd
--
device
=/
dev
/
dri
--
group
-
add
video
--
cap
-
add
=
SYS_PTRACE
--
security
-
opt
seccomp
=
unconfined
-
v
$
PWD
/
seresnet50_mmcv
:
/
home
/
seresnet50_mmcv
-
it
<
your
IMAGE
ID
>
bash
cd
seresnet50_mmcv
/
mmclassification
-
mmcv
pip
install
-
r
requirements
.
txt
```
### Dockerfile(方法二)
```
plaintext
cd seresnet50_mmcv/docker
docker build --no-cache -t seresnet50_mmcv:latest .
docker run --rm --shm-size 10g --network=host --name=megatron --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/../../seresnet50_mmcv:/home/seresnet50_mmcv -it megatron bash
# 若遇到Dockerfile启动的方式安装环境需要长时间等待,可注释掉里面的pip安装,启动容器后再安装python库:pip install -r requirements.txt
```
### Anaconda(方法三)
1、关于本项目DCU显卡所需的特殊深度学习库可从光合开发者社区下载安装: https://developer.hpccube.com/tool/
```
plaintext
DTK驱动:dtk22.10.1
python:python3.7
torch:1.10.0
torchvision:0.10.0
mmcv:1.6.1
Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一一对应
```
2、其它非特殊库参照requirements.txt安装
cd
Seresnet50_mmcv
/
mmclassification
-
mmcv
```
plaintext
pip install -r requirements.txt
```
...
...
@@ -46,7 +74,7 @@ pip install -r requirements.txt
├── val
```
##
#
训练
## 训练
将训练数据解压到data目录下。
...
...
docker/Dockerfile
0 → 100644
View file @
cd1c52c5
FROM
image.sourcefind.cn:5000/dcu/admin/base/pytorch:1.10.0-centos7.6-dtk-22.10.1-py37-latest
ENV
DEBIAN_FRONTEND=noninteractive
# 安装pip相关依赖
COPY
requirements.txt requirements.txt
RUN
pip3
install
-i
http://mirrors.aliyun.com/pypi/simple/
--trusted-host
mirrors.aliyun.com
-r
requirements.txt
docker/requirements.txt
0 → 100644
View file @
cd1c52c5
albumentations>=0.3.2 --no-binary qudida,albumentations
colorama
requests
rich
scipy
matplotlib>=3.1.0
numpy
packaging
codecov
flake8
interrogate
isort==4.3.21
pytest
xdoctest >= 0.10.0
yapf
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