Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluation not working #5

Open
AlexandraZajdel opened this issue Apr 22, 2020 · 3 comments
Open

Evaluation not working #5

AlexandraZajdel opened this issue Apr 22, 2020 · 3 comments

Comments

@AlexandraZajdel
Copy link

Running train-pqr.sh doesn't cause any errors, the model is saved. But running eval-pqr.sh gives the error below:

I0422 13:24:17.127754 140272342116160 evaluation.py:450] Starting evaluation at 2020-04-22-11:24:17 <
2020-04-22 13:24:20.225281: W tensorflow/core/framework/op_kernel.cc:1651] OP_REQUIRES failed at spacetobatch_op.cc:219 : Invalid argument: padded_shape[1]=65 is not divisible by block_shape[1]=2
Traceback (most recent call last):
  File "/home/alexandra/Desktop/ABB/DeepLab_Tensorflow/.env/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1365, in _do_call
    return fn(*args)
  File "/home/alexandra/Desktop/ABB/DeepLab_Tensorflow/.env/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1350, in _run_fn
    target_list, run_metadata)
  File "/home/alexandra/Desktop/ABB/DeepLab_Tensorflow/.env/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1443, in _call_tf_sessionrun
    run_metadata)
tensorflow.python.framework.errors_impl.InvalidArgumentError: padded_shape[1]=65 is not divisible by block_shape[1]=2
         [[{{node xception_65/exit_flow/block2/unit_1/xception_module/separable_conv1_depthwise/depthwise/SpaceToBatchND}}]]

Before you ask, I've the same train_crop_size and eval_crop_size in the mentioned scripts.

@ankitksharma
Copy link

@AleksandraPestka I'm also facing the same issue. Were you able to resolve this?

@AlexandraZajdel
Copy link
Author

@ankitksharma No, unfortunately

@ankitksharma
Copy link

@AleksandraPestka I wrote an export script which basically writes frozen_inference_graph.pb which you can use in demo_script. I hope it will be of help to you

python "${WORK_DIR}"/export_model.py \
  --checkpoint_path="${TRAIN_LOGDIR}/model.ckpt-500000" \
  --export_path="${TRAIN_LOGDIR}/frozen_inference_graph.pb" \
  --model_variant="mobilenet_v2" \
  --num_classes=2 \
  --atrous_rates=6 \
  --atrous_rates=12 \
  --atrous_rates=18 \
  --output_stride=16 \
  --decoder_output_stride=4 \
  --train_crop_size=256 \
  --train_crop_size=256 \
  --crop_size=256 \
  --crop_size=256 \
  --inference_scales=1.0 \
  --save_inference_graph=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants