-
Notifications
You must be signed in to change notification settings - Fork 26
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: cond() got an unexpected keyword argument 'true_fn' #4
Comments
Maybe it's because your TensorFlow version is too old. There is actually a keyword argument |
Thank you! you are right.After solving this problem, I encountered another problem: Caused by op u'fast_rcnn_loss/fast_rcnn_minibatch/roi_visualize/crop_img_object', defined at: InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'CropAndResize' with these attrs. Registered devices: [CPU,GPU], Registered kernels:
|
hello,when i run python train.py, it occured:
Traceback (most recent call last):
File "train.py", line 230, in
train()
File "train.py", line 35, in train
is_training=True)
File "../data/io/read_tfrecord.py", line 83, in next_batch
is_training=is_training)
File "../data/io/read_tfrecord.py", line 57, in read_and_prepocess_single_img
target_shortside_len=shortside_len)
File "../data/io/image_preprocess.py", line 27, in short_side_resize
false_fn=lambda: (target_shortside_len * h//w, target_shortside_len))
TypeError: cond() got an unexpected keyword argument 'true_fn'
The text was updated successfully, but these errors were encountered: