Coder Social home page Coder Social logo

Comments (2)

Kongsea avatar Kongsea commented on July 23, 2024

Maybe it's because your TensorFlow version is too old. There is actually a keyword argument true_fn in the newest version.

from fpn_tensorflow.

lfdeep avatar lfdeep commented on July 23, 2024

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:
File "train.py", line 232, in
train()
File "train.py", line 119, in train
fast_rcnn_location_loss, fast_rcnn_classification_loss = fast_rcnn.fast_rcnn_loss()
File "../libs/fast_rcnn/build_fast_rcnn.py", line 244, in fast_rcnn_loss
minibatch_label_one_hot = self.fast_rcnn_minibatch(self.fast_rcnn_all_level_proposals)
File "../libs/fast_rcnn/build_fast_rcnn.py", line 221, in fast_rcnn_minibatch
roi_visualize(self.img_batch, img_h, img_w, positive_proposals, positive_rois)
File "../libs/box_utils/visualization.py", line 28, in roi_visualize
name='crop_img_object'
File "/share/home/math.text/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/gen_image_ops.py", line 178, in crop_and_resize
name=name)
File "/share/home/math.text/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 768, in apply_op
op_def=op_def)
File "/share/home/math.text/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2336, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/share/home/math.text/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1228, in init
self._traceback = _extract_stack()

InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'CropAndResize' with these attrs. Registered devices: [CPU,GPU], Registered kernels:
device='CPU'; T in [DT_FLOAT]
device='GPU'; T in [DT_FLOAT]

     [[Node: fast_rcnn_loss/fast_rcnn_minibatch/roi_visualize/crop_img_object = CropAndResize[T=DT_UINT8, extrapolation_value=0, method="bilinear"](fast_rcnn_loss/fast_rcnn_minibatch/roi_visualize/ExpandDims, fast_rcnn_loss/fast_rcnn_minibatch/roi_visualize/transpose, fast_rcnn_loss/fast_rcnn_minibatch/roi_visualize/zeros, fast_rcnn_loss/fast_rcnn_minibatch/roi_visualize/crop_img_object/crop_size)]]

from fpn_tensorflow.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.