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

TypeError: concat() got an unexpected keyword argument 'axis' #41

Open
mysope opened this issue Mar 29, 2017 · 0 comments
Open

TypeError: concat() got an unexpected keyword argument 'axis' #41

mysope opened this issue Mar 29, 2017 · 0 comments

Comments

@mysope
Copy link

mysope commented Mar 29, 2017

I get the following error, is it a TF version issue?
My TF version is 0.12.

$ EVAL_DIR=./logs/
$ CHECKPOINT_PATH=./checkpoints/VGG_VOC0712_SSD_300x300_ft_iter_120000.ckpt
$ python eval_ssd_network.py --eval_dir=${EVAL_DIR} --dataset_dir=${DATASET_DIR} --dataset_name=pascalvoc_2007 --dataset_split_name=test --model_name=ssd_300_vgg --checkpoint_path=${CHECKPOINT_PATH} --batch_size=1
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcurand.so locally

===========================================================================

Training | Evaluation flags:

===========================================================================

{'batch_size': 1,
'checkpoint_path': './checkpoints/VGG_VOC0712_SSD_300x300_ft_iter_120000.ckpt',
'dataset_dir': './VOC2007/',
'dataset_name': 'pascalvoc_2007',
'dataset_split_name': 'test',
'eval_dir': './logs/',
'eval_image_size': None,
'eval_resize': 4,
'gpu_memory_fraction': 0.04,
'keep_top_k': 200,
'master': '',
'matching_threshold': 0.5,
'max_num_batches': None,
'model_name': 'ssd_300_vgg',
'moving_average_decay': None,
'nms_threshold': 0.45,
'num_classes': 21,
'num_preprocessing_threads': 4,
'preprocessing_name': None,
'remove_difficult': True,
'select_threshold': 0.01,
'select_top_k': 400,
'unrolled_lstm': False,
'wait_for_checkpoints': False}

===========================================================================

SSD net parameters:

===========================================================================

{'anchor_offset': 0.5,
'anchor_ratios': [[2, 0.5],
[2, 0.5, 3, 0.3333333333333333],
[2, 0.5, 3, 0.3333333333333333],
[2, 0.5, 3, 0.3333333333333333],
[2, 0.5],
[2, 0.5]],
'anchor_size_bounds': [0.15, 0.9],
'anchor_sizes': [(21.0, 45.0),
(45.0, 99.0),
(99.0, 153.0),
(153.0, 207.0),
(207.0, 261.0),
(261.0, 315.0)],
'anchor_steps': [8, 16, 32, 64, 100, 300],
'feat_layers': ['block4', 'block7', 'block8', 'block9', 'block10', 'block11'],
'feat_shapes': [(38, 38), (19, 19), (10, 10), (5, 5), (3, 3), (1, 1)],
'img_shape': (300, 300),
'no_annotation_label': 21,
'normalizations': [20, -1, -1, -1, -1, -1],
'num_classes': 21,
'prior_scaling': [0.1, 0.1, 0.2, 0.2]}

===========================================================================

Training | Evaluation dataset files:

===========================================================================

['./VOC2007/voc_2007_test.tfrecord']

Traceback (most recent call last):
File "eval_ssd_network.py", line 346, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 43, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "eval_ssd_network.py", line 162, in main
difficults=None)
File "/home/nwkim/tensorflow-sample/SSD-Tensorflow/preprocessing/preprocessing_factory.py", line 59, in preprocessing_fn
is_training=is_training, **kwargs)
File "/home/nwkim/tensorflow-sample/SSD-Tensorflow/preprocessing/ssd_vgg_preprocessing.py", line 400, in preprocess_image
**kwargs)
File "/home/nwkim/tensorflow-sample/SSD-Tensorflow/preprocessing/ssd_vgg_preprocessing.py", line 322, in preprocess_for_eval
bboxes = tf.concat([bbox_img, bboxes], axis=0)
TypeError: concat() got an unexpected keyword argument 'axis'

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

1 participant