wgan export bug fix master

This commit is contained in:
zhangxiaoxiao 2021-07-06 18:17:30 +08:00
parent 45d3f32f9d
commit 0e98f233d9
2 changed files with 6 additions and 1 deletions

View File

@ -23,7 +23,8 @@ import mindspore.common.dtype as mstype
from mindspore import Tensor, load_checkpoint, load_param_into_net, export, context
from src.args import get_args
from src.dcgan_model import DcganG
from src.dcgannobn_model import DcgannobnG
if __name__ == '__main__':
args_opt = get_args('export')

View File

@ -102,6 +102,10 @@ function infer()
function cal_acc()
{
if [ -d infer_output ]; then
rm -rf ./infer_output
fi
mkdir infer_output
python3.7 ../postprocess.py --config=$config_path --output_dir=./infer_output --nimages=$nimages --post_result_path=./result_Files --device_id=$device_id &> acc.log
}