Skip to content

jiaowoguanren0615/ConvNextV2-Pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ConvNextV2-Pytorch

Paper: ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoders(https://arxiv.org/pdf/2301.00808.pdf)

Precautions

The code warehouse mainly contains two models: ConvNextV2 and FCMAE-ConvNextV2. The code has been slightly modified based on the source code of the facebookresearch warehouse. You can use your own data set to train the classification model and FCMAE model.

Note: Before training the classification model, you need to enter the train_gpu_finetune.py file to modify the path and batchsize of your own data set. If it is a single-gpu environment, you need to replace the "--sync-bn" parameter with false, otherwise it may An error will be reported; if you want to train the FCMAE model, you need to first enter the "util-->--init--" file, modify the import package path, then enter train_gpu_pretrain.py, modify the path of the data set, and finally run the train_gpu_pretrain.py file.

TRAIN AND EVALUATE CLF MODEL

  1. cd ConvNextV2
  2. python train_gpu_finetune.py

Releases

No releases published

Packages

No packages published

Languages