@@ -293,7 +293,7 @@ unzip resnet50_pyt_amp_20.06.0.zip
293293
294294To run inference on ImageNet, run:
295295
296- ` python ./main.py --arch resnet50 --evaluate --epochs 1 --pretrained-weights nvidia_resnet50_200821.pth.tar -b <batch size> <path to imagenet> `
296+ ` python ./main.py --arch resnet50 --evaluate --epochs 1 --pretrained-from-file nvidia_resnet50_200821.pth.tar -b <batch size> <path to imagenet> `
297297
298298To run inference on JPEG image using pretrained weights:
299299
@@ -331,12 +331,12 @@ To see the full list of available options and their descriptions, use the `-h` o
331331
332332```
333333usage: main.py [-h] [--data-backend BACKEND] [--arch ARCH]
334- [--model-config CONF] [--num-classes N] [- j N] [--epochs N]
334+ [--model-config CONF] [-j N] [--epochs N]
335335 [--run-epochs N] [-b N] [--optimizer-batch-size N] [--lr LR]
336336 [--lr-schedule SCHEDULE] [--warmup E] [--label-smoothing S]
337337 [--mixup ALPHA] [--momentum M] [--weight-decay W]
338338 [--bn-weight-decay] [--nesterov] [--print-freq N]
339- [--resume PATH] [--pretrained-weights PATH]
339+ [--resume PATH] [--pretrained-from-file PATH]
340340 [--static-loss-scale STATIC_LOSS_SCALE] [--dynamic-loss-scale]
341341 [--prof N] [--amp] [--seed SEED] [--gather-checkpoints]
342342 [--raport-file RAPORT_FILE] [--evaluate] [--training-only]
@@ -362,7 +362,6 @@ optional arguments:
362362 --model-config CONF, -c CONF
363363 model configs: classic | fanin | grp-fanin | grp-
364364 fanout(default: classic)
365- --num-classes N number of classes in the dataset
366365 -j N, --workers N number of data loading workers (default: 5)
367366 --epochs N number of total epochs to run
368367 --run-epochs N run only N epochs, used for checkpointing runs
@@ -385,7 +384,7 @@ optional arguments:
385384 --nesterov use nesterov momentum, (default: false)
386385 --print-freq N, -p N print frequency (default: 10)
387386 --resume PATH path to latest checkpoint (default: none)
388- --pretrained-weights PATH
387+ --pretrained-from-file PATH
389388 load weights from here
390389 --static-loss-scale STATIC_LOSS_SCALE
391390 Static loss scale, positive power of 2 values can
@@ -418,7 +417,7 @@ To use your own dataset, divide it in directories as in the following scheme:
418417 - Training images - ` train/<class id>/<image> `
419418 - Validation images - ` val/<class id>/<image> `
420419
421- If your dataset's has number of classes different than 1000, you need to pass ` --num-classes N ` flag to the training script.
420+ If your dataset's has number of classes different than 1000, you need to pass ` --num_classes N ` flag to the training script.
422421
423422### Training process
424423
@@ -438,7 +437,7 @@ Metrics gathered through training:
438437
439438To restart training from checkpoint use ` --resume ` option.
440439
441- To start training from pretrained weights (e.g. downloaded from NGC) use ` --pretrained-weights ` option.
440+ To start training from pretrained weights (e.g. downloaded from NGC) use ` --pretrained-from-file ` option.
442441
443442The difference between those two is that the pretrained weights contain only model weights,
444443and checkpoints, apart from model weights, contain optimizer state, LR scheduler state.
@@ -476,7 +475,7 @@ Then run classification script:
476475
477476You can also run ImageNet validation on pretrained weights:
478477
479- ` python ./main.py --arch resnet50 --evaluate --epochs 1 --pretrained-weights <path to pretrained weights> -b <batch size> <path to imagenet> `
478+ ` python ./main.py --arch resnet50 --evaluate --epochs 1 --pretrained-from-file <path to pretrained weights> -b <batch size> <path to imagenet> `
480479
481480#### NGC Pretrained weights:
482481
@@ -489,7 +488,7 @@ unzip resnet50_pyt_amp_20.06.0.zip
489488```
490489To run inference on ImageNet, run:
491490
492- ` python ./main.py --arch resnet50 --evaluate --epochs 1 --pretrained-weights nvidia_resnet50_200821.pth.tar -b <batch size> <path to imagenet> `
491+ ` python ./main.py --arch resnet50 --evaluate --epochs 1 --pretrained-from-file nvidia_resnet50_200821.pth.tar -b <batch size> <path to imagenet> `
493492
494493To run inference on JPEG image using pretrained weights:
495494
0 commit comments