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

Not finding the tfrecords during test #55

Open
jacquesmats opened this issue Jul 15, 2019 · 5 comments
Open

Not finding the tfrecords during test #55

jacquesmats opened this issue Jul 15, 2019 · 5 comments

Comments

@jacquesmats
Copy link

jacquesmats commented Jul 15, 2019

I'm running the following command, which is the same on Readme:

# SSD vehicle search
python /simrdwn/simrdwn/core/simrdwn.py \
	--framework ssd \
	--mode test \
	--outname inception_v2_cowc \
	--label_map_path /simrdwn/data/train_data/class_labels_car.pbtxt \
	--train_model_path /simrdwn/results/train_ssd_inception_v2_cowc_mat_2019_07_11_18-16-18 \
	--tf_cfg_train_file ssd_inception_v2_simrdwn.config \
	--use_tfrecords=1 \
	--testims_dir /simrdwn/data/test_images/cowc/Utah_AGRC  \
	--keep_test_slices 0 \
	--test_slice_sep __ \
	--test_make_legend_and_title 0 \
	--edge_buffer_test 1 \
	--test_box_rescale_frac 1 \
	--plot_thresh_str 0.2 \
	--slice_sizes_str 416 \
	--slice_overlap 0.2 \
	--alpha_scaling 1 \
	--show_labels 0

And receiving the following error:

Traceback (most recent call last):
  File "/simrdwn/simrdwn/core/infer_detections.py", line 312, in <module>
    tf.app.run()
  File "/opt/conda/envs/simrdwn2/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run
    _sys.exit(main(argv))
  File "/simrdwn/simrdwn/core/infer_detections.py", line 137, in main
    input_tfrecord_paths)
  File "/tensorflow/models/research/object_detection/inference/detection_inference.py", line 35, in build_input
    tfrecord_paths, shuffle=False, num_epochs=1)
  File "/opt/conda/envs/simrdwn2/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 324, in new_func
    return func(*args, **kwargs)
  File "/opt/conda/envs/simrdwn2/lib/python3.6/site-packages/tensorflow/python/training/input.py", line 259, in string_input_producer
    raise ValueError(not_null_err)

I'm having dificulties tracking it down. It seems some path is wrong 🤔

Edit: Setting --use_tfrecords=0 \ returns the same error.

@avanetten
Copy link
Owner

Have you tried running Line 21 of the dockerfile when in the docker image?

once started run:

export PYTHONPATH=$PYTHONPATH:/tensorflow/models/research/:/tensorflow/models/research/slim

@jacquesmats
Copy link
Author

Yes, still not working. Same error /cry

@avanetten
Copy link
Owner

What's in the directory?
--train_model_path /simrdwn/results/train_ssd_inception_v2_cowc_mat_2019_07_11_18-16-18

@jacquesmats
Copy link
Author

image

@avanetten
Copy link
Owner

The most recent push should solve this problem.

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