Minor modifications to run locally + comments for explanation #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Minor changes to have this run locally (for instance removed num_workers) on dataloaders which don't work for us (or at least seem to slow things down a lot since we're running this on a single machine).
To run the code:
python train_cifar100.py --data-root data/cifar10 --dataset cifar10 --result_dir results/msdnet_ge_cifar10 --arch msdnet_ge --ensemble_reweight 0.5 --batch-size 64 --nBlocks 10 --stepmode even --step 2 --base 4 --nChannels 16 --workers 1 --lr_f 0.1 --lr_milestones 150,225 --epochs 200 --weight-decay 1e-4
Also when running this we will likely run into an issue with tensorboard pytorch/pytorch#69894.
The file to fix is:
site-packages/torch/utils/tensorboard/__init__.py
To get the exact location, activation your environment, start a python shell, import torch and print(torch.file)
The fix is to use proper import syntax for LooseVersion
The file should look like this: