Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoMix tutorial that is independent of MMClassification #12

Open
lofrienger opened this issue Aug 14, 2022 · 1 comment
Open

AutoMix tutorial that is independent of MMClassification #12

lofrienger opened this issue Aug 14, 2022 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@lofrienger
Copy link

Dear Authors,

Inspiring work!
Could you please provide a simplified demo/tutorial of how to use AutoMix in general PyTorch training? I have no experience of using OpenMMLab-style framework.
A small demo like google colab notebook would be of great help!

Thanks!

@lofrienger lofrienger added the help wanted Extra attention is needed label Aug 14, 2022
@Lupin1998 Lupin1998 self-assigned this Aug 14, 2022
@Lupin1998
Copy link
Member

Hi,
Thanks for your advice @lofrienger! We are working on a simplified version of AutoMix for more practical usage, but it might require quite a long time. Therefore, we plan to provide a demo of AutoMix based on the Jupyter notebook in OpenMixup. Currently, you can install OpenMixup with quick installation steps, download a small-scale dataset (e.g., CIFAR-100), and start training AutoMix.

Taking AutoMix on CIFAR-100 as an example, we provide installation and training scripts as follows:

# install openmixup
conda create -n openmixup python=3.8 pytorch=1.10 cudatoolkit=11.3 torchvision -c pytorch -y
conda activate openmixup
pip3 install openmim
mim install mmcv-full
git clone https://github.com/Westlake-AI/openmixup.git
cd openmixup
python setup.py develop
# download CIFAR-100 dataset and put it under './data/cifar100'.
mkdir data
python -c "import torchvision; torchvision.datasets.CIFAR100(download=True, root='data/cifar100');"
# start training
PORT=29001 bash tools/dist_train.sh configs/classification/cifar100/automix/basic/r18_l2_a2_near_L1_01_mlr5e_2.py 1

During training, some mixed samples will be saved in the experiment directory. We hope this would help you!

Siyuan Li

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants