Commit 84bef504 authored by sunxx1's avatar sunxx1
Browse files

更新readme

parent 17ba0f32
...@@ -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模型是首选算法。
![20231124132639](./images/20231124132639.png) ![20231124132639](./images/20231124132639.png)
## 模型结构 ## 算法原理
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目录下。
......
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
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment