@ -41,6 +41,7 @@ Specifically, the GoogleNet contains numerous inception modules, which are conne
# [Dataset](#contents)
Note that you can run the scripts based on the dataset mentioned in original paper or widely used in relevant domain/network architecture. In the following sections, we will introduce how to run the scripts using the related dataset below.
@ -167,11 +168,11 @@ Parameters for both training and evaluation can be set in config.py
'image_width': 224 # image width used as input to the model
'data_path': './cifar10' # absolute full path to the train and evaluation datasets
'device_target': 'Ascend' # device running the program
'device_id': 4 # device ID used to train or evaluate the dataset. Ignore it when you use run_train.sh for distributed training
'device_id': 0 # device ID used to train or evaluate the dataset. Ignore it when you use run_train.sh for distributed training
'keep_checkpoint_max': 10 # only keep the last keep_checkpoint_max checkpoint
'checkpoint_path': './train_googlenet_cifar10-125_390.ckpt' # the absolute full path to save the checkpoint file
'onnx_filename': 'googlenet.onnx' # file name of the onnx model used in export.py
'geir_filename': 'googlenet.geir' # file name of the geir model used in export.py
'air_filename': 'googlenet.air' # file name of the air model used in export.py
```
For more configuration details, please refer the script `config.py`.
@ -265,7 +266,7 @@ For more configuration details, please refer the script `config.py`.
Note that for evaluation after distributed training, please set the checkpoint_path to be the last saved checkpoint file such as "username/googlenet/train_parallel0/train_googlenet_cifar10-125_48.ckpt". The accuracy of the test dataset will be as follows:
```
# grep "accuracy: " dist.eval.log
# grep "accuracy: " eval.log
accuracy: {'acc': 0.9217}
```
@ -310,8 +311,8 @@ For more configuration details, please refer the script `config.py`.