# Vision GNN
By Kai Han, Yunhe Wang, Jianyuan Guo, Yehui Tang and Enhua Wu. [[arXiv link]](https://arxiv.org/abs/2206.00272)
![image](../fig/vig.png)
## Requirements
Pytorch 1.7.0,
timm 0.3.2,
torchprofile 0.0.4,
apex
## ViG Code
Paper: [Vision GNN: An Image is Worth Graph of Nodes](https://arxiv.org/abs/2206.00272)
- Training example for 8 GPUs:
```
python -m torch.distributed.launch --nproc_per_node=8 train.py /path/to/imagenet/ --model pvig_s_224_gelu --sched cosine --epochs 300 --opt adamw -j 8 --warmup-lr 1e-6 --mixup .8 --cutmix 1.0 --model-ema --model-ema-decay 0.99996 --aa rand-m9-mstd0.5-inc1 --color-jitter 0.4 --warmup-epochs 20 --opt-eps 1e-8 --repeated-aug --remode pixel --reprob 0.25 --amp --lr 2e-3 --weight-decay .05 --drop 0 --drop-path .1 -b 128 --output /path/to/save/models/
```
- Pretrained models
|Model|Params (M)|FLOPs (B)|Top-1|URL|
|-|-|-|-|-|
|Pyramid ViG-Ti|10.7|1.7|78.5|[[BaiduDisk]](https://pan.baidu.com/s/1Vrr-oXQeUFujaHKMC5sXIQ), Password: chae|
|Pyramid ViG-S|27.3|4.6|82.1|[[BaiduDisk]](https://pan.baidu.com/s/10MWZznvPIvGAiBtnwj7TRg), Password: 81mg|
|Pyramid ViG-M|51.7|8.9|83.1|[[BaiduDisk]](https://pan.baidu.com/s/1N3nviACOrY0XBC0FKoDL6g), Password: prd3|
|Pyramid ViG-B|82.6|16.8|83.7|[[BaiduDisk]](https://pan.baidu.com/s/1b5OvPZXwcSwur2nuDAzf5Q), Password: rgm4|
- Evaluate example:
```
python train.py /path/to/imagenet/ --model pvig_s_224_gelu -b 256 --pretrain_path /path/to/pretrained/model/ --evaluate
```
## Citation
```
@misc{vig,
title={Vision GNN: An Image is Worth Graph of Nodes},
author={Kai Han and Yunhe Wang and Jianyuan Guo and Yehui Tang and Enhua Wu},
year={2022},
eprint={2206.00272},
archivePrefix={arXiv}
}
```
## Acknowledgement
This repo partially uses code from [deep_gcns_torch](https://github.com/lightaime/deep_gcns_torch) and [timm](https://github.com/rwightman/pytorch-image-models).
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
VIG代码及其权重.zip (54个子文件)
VIG
utils.py 6KB
__init__.py 26B
losses.py 5KB
pvig_s_82.1.pth.tar 111.19MB
gcn_lib
__init__.py 104B
paddle_gcn.py 4KB
paddle_edge.py 6KB
pos_embd.py 3KB
__pycache__
paddle_nn.cpython-37.pyc 3KB
pos_embd.cpython-37.pyc 2KB
paddle_edge.cpython-37.pyc 5KB
__init__.cpython-37.pyc 221B
paddle_gcn.cpython-37.pyc 5KB
paddle_nn.py 3KB
main_multi_gpu.py 24KB
model_ema.py 2KB
save
THIRD PARTY OPEN SOURCE SOFTWARE NOTICE.txt 24KB
data
readme.md 2KB
gcn_libs
pos_embed.py 2KB
__pycache__
__pycache__
License.txt 11KB
configs
vig_s.yaml 154B
load_pytorch_weights.py 11KB
mixup.py 9KB
droppath.py 2KB
pyramid_vig.py 12KB
vig_pytorch
__init__.py 23B
THIRD PARTY OPEN SOURCE SOFTWARE NOTICE.txt 24KB
data
rasampler.py 2KB
myloader.py 5KB
readme.md 2KB
gcn_libs
__init__.py 184B
torch_nn.py 4KB
torch_vertex.py 7KB
pos_embed.py 3KB
__pycache__
torch_nn.cpython-37.pyc 3KB
pos_embed.cpython-37.pyc 2KB
torch_edge.cpython-37.pyc 5KB
__init__.cpython-37.pyc 213B
torch_vertex.cpython-37.pyc 7KB
torch_edge.py 6KB
pyramid_vig1.py 10KB
train.py 37KB
__pycache__
pyramid_vig1.cpython-37.pyc 9KB
pyramid_vig.cpython-37.pyc 9KB
__init__.cpython-37.pyc 159B
License.txt 11KB
vig_s.pdparams 111.06MB
datasets.py 9KB
random_erasing.py 5KB
__pycache__
droppath.cpython-37.pyc 1KB
pyramid_vig.cpython-37.pyc 11KB
config.cpython-37.pyc 4KB
augment.py 19KB
config.py 5KB
共 54 条
- 1
资源评论
- 啥羔羊2023-08-21支持这个资源,内容详细,主要是能解决当下的问题,感谢大佬分享~
- leeweii2023-09-14怎么能有这么好的资源!只能用感激涕零来形容TAT...
- 2301_773215032023-09-13这个资源对我启发很大,受益匪浅,学到了很多,谢谢分享~
地理探险家
- 粉丝: 1040
- 资源: 5416
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功