Last active
May 7, 2020 04:18
-
-
Save zhanghang1989/e97124f43577cbe1a897fa69517e52a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws s3 cp s3://zhiz-data/datasets/imagenet/ILSVRC2012_img_train.tar . | |
aws s3 cp s3://zhiz-data/datasets/imagenet/ILSVRC2012_img_val.tar . | |
cd ResNeSt/ | |
python scripts/dataset/prepare_imagenet.py --download-dir ~/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/ | |
sudo mkdir -p /media/ramdisk | |
sudo mount -t tmpfs -o size=200G tmpfs /media/ramdisk | |
cp -r /home/ubuntu/data/ILSVRC2012/ /media/ramdisk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/data | |
mkdir ~/data/ILSVRC2012 | |
cd ~/data/ILSVRC2012 | |
aws s3 sync s3://zhiz-data/datasets/imagenets/ . | |
cd ~/ | |
sudo mkdir -p /media/ramdisk | |
sudo mount -t tmpfs -o size=200G tmpfs /media/ramdisk | |
cp -r /home/ubuntu/data/ILSVRC2012/ /media/ramdisk | |
pip install mxnet-cu100 | |
HOROVOD_GPU_ALLREDUCE=NCCL pip install -v --no-cache-dir horovod | |
pip install --no-cache mpi4py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws s3 cp s3://zhiz-data/datasets/imagenet/ILSVRC2012_img_train.tar . | |
aws s3 cp s3://zhiz-data/datasets/imagenet/ILSVRC2012_img_val.tar . | |
conda install -y pytorch torchvision cudatoolkit=10.0 -c pytorch | |
cd ~/ | |
mkdir -p git | |
cd git/ | |
git clone https://github.com/zhanghang1989/ResNeSt | |
cd ResNeSt/ && python setup.py develop | |
python scripts/dataset/prepare_imagenet.py --download-dir ~/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wget -qO- https://gist.githubusercontent.com/zhanghang1989/e97124f43577cbe1a897fa69517e52a7/raw/9d004f34f62702d960641de5c6e6d987fcdf2903/setup_pth.sh | bash