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
VGG16_mmcv
Commits
84bef504
Commit
84bef504
authored
Dec 07, 2023
by
sunxx1
Browse files
更新readme
parent
17ba0f32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
4 deletions
+52
-4
README.md
README.md
+32
-4
docker/Dockerfile
docker/Dockerfile
+5
-0
docker/requirements.txt
docker/requirements.txt
+15
-0
No files found.
README.md
View file @
84bef504
...
@@ -6,13 +6,13 @@ VERY DEEP CONVOLUTIONAL NETWORKS FOR LARGE-SCALE IMAGE RECOGNITION
...
@@ -6,13 +6,13 @@ VERY DEEP CONVOLUTIONAL NETWORKS FOR LARGE-SCALE IMAGE RECOGNITION
-
https://arxiv.org/abs/1409.1556
-
https://arxiv.org/abs/1409.1556
## 模型
介绍
## 模型
结构
VGG模型是2014年ILSVRC竞赛的第二名,第一名是GoogLeNet。但是VGG模型在多个迁移学习任务中的表现要优于GoogLeNet。而且,从图像中提取CNN特征,VGG模型是首选算法。
VGG模型是2014年ILSVRC竞赛的第二名,第一名是GoogLeNet。但是VGG模型在多个迁移学习任务中的表现要优于GoogLeNet。而且,从图像中提取CNN特征,VGG模型是首选算法。


##
模型结构
##
算法原理
VGG16共有16个层,是一个相当深的卷积神经网络。VGG各种级别的结构都采用了5段卷积,每一段有一个或多个卷积层。
VGG16共有16个层,是一个相当深的卷积神经网络。VGG各种级别的结构都采用了5段卷积,每一段有一个或多个卷积层。
...
@@ -20,7 +20,7 @@ VGG16共有16个层,是一个相当深的卷积神经网络。VGG各种级别
...
@@ -20,7 +20,7 @@ VGG16共有16个层,是一个相当深的卷积神经网络。VGG各种级别
## 环境配置
## 环境配置
### Docker
### Docker
(方法一)
```
python
```
python
git
clone
--
recursive
http
:
//
developer
.
hpccube
.
com
/
codes
/
modelzoo
/
vgg16_mmcv
.
git
git
clone
--
recursive
http
:
//
developer
.
hpccube
.
com
/
codes
/
modelzoo
/
vgg16_mmcv
.
git
...
@@ -32,6 +32,34 @@ cd vgg16_mmcv/mmclassification-mmcv
...
@@ -32,6 +32,34 @@ cd vgg16_mmcv/mmclassification-mmcv
pip
install
-
r
requirements
.
txt
pip
install
-
r
requirements
.
txt
```
```
### Dockerfile(方法二)
```
plaintext
cd vgg16_mmcv/docker
docker build --no-cache -t vgg16_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/../../vgg16_mmcv:/home/vgg16_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安装
```
plaintext
pip install -r requirements.txt
```
## 数据集
## 数据集
在本测试中可以使用ImageNet数据集。
在本测试中可以使用ImageNet数据集。
...
@@ -46,7 +74,7 @@ pip install -r requirements.txt
...
@@ -46,7 +74,7 @@ pip install -r requirements.txt
├── val
├── val
```
```
##
#
训练
## 训练
将训练数据解压到data目录下。
将训练数据解压到data目录下。
...
...
docker/Dockerfile
0 → 100644
View file @
84bef504
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 @
84bef504
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