Git Product home page Git Product logo

Comments (6)

chl916185 avatar chl916185 commented on June 19, 2024

File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/script_ops.py", line 85, in call
ret = func(*args)
File "./faster_rcnn/../lib/rpn_msr/anchor_target_layer.py", line 144, in anchor_target_layer
gt_argmax_overlaps = overlaps.argmax(axis=0) # G
ValueError: attempt to get argmax of an empty sequence

When I met the above training VOC2007 error, how do you solve?@
@xmyqsh @BestSongEver

from fpn.

chl916185 avatar chl916185 commented on June 19, 2024

how do you solve this problem?
@BestSongEver

from fpn.

BestSongEver avatar BestSongEver commented on June 19, 2024

Sorry, i never met this issue. But i just checked it on google.
It might caused by "Because the ratio of images width and heights is too small or large"
Hope it helpful. @chl916185

from fpn.

chl916185 avatar chl916185 commented on June 19, 2024

Thank you, it is really inappropriate three pictures, I didn't use them, problem solved, but How to run test_net.py? I met the same problem with you.
Traceback (most recent call last):
File "./faster_rcnn/test_net.py", line 83, in
network = get_network(args.network_name)
File "./faster_rcnn/../lib/networks/factory.py", line 19, in get_network
return FPN_test()
File "./faster_rcnn/../lib/networks/FPN_test.py", line 25, in init
self.setup()
File "./faster_rcnn/../lib/networks/FPN_test.py", line 231, in setup
.fc(n_classes, relu=False, name='cls_score')
File "./faster_rcnn/../lib/networks/network.py", line 34, in layer_decorated
layer_output = op(self, layer_input, args, **kwargs)
File "./faster_rcnn/../lib/networks/network.py", line 391, in fc
dim = dim
d
TypeError: unsupported operand type(s) for *: 'int' and 'NoneType'
@BestSongEver

from fpn.

xmyqsh avatar xmyqsh commented on June 19, 2024

@chl916185 @BestSongEver
hi there,
I've updated anchors filtering logic in proposal target layer to cope with the problem encountered in low h/w ratio images

I will check the test_net latter

from fpn.

chl916185 avatar chl916185 commented on June 19, 2024

When i use the test_net.py from another project, there gose an error:

(<tf.Tensor 'rpn_rois/rpn_rois_P2:0' shape=(?, 5) dtype=float32>, <tf.Tensor 'rpn_rois/rpn_rois_P3:0' shape=(?, 5) dtype=float32>, <tf.Tensor 'rpn_rois/rpn_rois_P4:0' shape=(?, 5) dtype=float32>, <tf.Tensor 'rpn_rois/rpn_rois_P5:0' shape=(?, 5) dtype=float32>)
[<tf.Tensor 'P2/BiasAdd:0' shape=(?, ?, ?, 256) dtype=float32>, <tf.Tensor 'P3/BiasAdd:0' shape=(?, ?, ?, 256) dtype=float32>, <tf .Tensor 'P4/BiasAdd:0' shape=(?, ?, ?, 256) dtype=float32>, <tf.Tensor 'P5/BiasAdd:0' shape=(?, ?, ?, 256) dtype=float32>, (<tf.Te nsor 'rpn_rois/rpn_rois_P2:0' shape=(?, 5) dtype=float32>, <tf.Tensor 'rpn_rois/rpn_rois_P3:0' shape=(?, 5) dtype=float32>, <tf.Te nsor 'rpn_rois/rpn_rois_P4:0' shape=(?, 5) dtype=float32>, <tf.Tensor 'rpn_rois/rpn_rois_P5:0' shape=(?, 5) dtype=float32>)]
Traceback (most recent call last):
File "./faster_rcnn/test_net.py", line 78, in
network = get_network(args.network_name)
File "./faster_rcnn/../lib/networks/factory.py", line 19, in get_network
return FPN_test()
File "./faster_rcnn/../lib/networks/FPN_test.py", line 25, in init
self.setup()
File "./faster_rcnn/../lib/networks/FPN_test.py", line 354, in setup
.fc(n_classes, relu=False, name='cls_score')
File "./faster_rcnn/../lib/networks/network.py", line 34, in layer_decorated
layer_output = op(self, layer_input, *args, **kwargs)
File "./faster_rcnn/../lib/networks/network.py", line 405, in fc
regularizer=self.l2_regularizer(cfg.TRAIN.WEIGHT_DECAY))
File "./faster_rcnn/../lib/networks/network.py", line 96, in make_var
return tf.get_variable(name, shape, initializer=initializer, trainable=trainable, regularizer=regularizer)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 988, in get_variable
custom_getter=custom_getter)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 890, in get_variable
custom_getter=custom_getter)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 348, in get_variable
validate_shape=validate_shape)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 333, in _true_getter
caching_device=caching_device, validate_shape=validate_shape)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 639, in _get_single_variable
name, "".join(traceback.format_list(tb))))
ValueError: Variable cls_score/weights already exists, disallowed. Did you mean to set reuse=True in VarScope? Originally defined at:

File "./faster_rcnn/../lib/networks/network.py", line 96, in make_var
return tf.get_variable(name, shape, initializer=initializer, trainable=trainable, regularizer=regularizer)
File "./faster_rcnn/../lib/networks/network.py", line 405, in fc
regularizer=self.l2_regularizer(cfg.TRAIN.WEIGHT_DECAY))
File "./faster_rcnn/../lib/networks/network.py", line 34, in layer_decorated
layer_output = op(self, layer_input, *args, **kwargs)
When I was loading the trained model:
network_name = 'FPN_test'
network = get_network(network_name)
print 'Use network {:s} in training'.format(network_name)
@BestSongEver @xmyqsh

from fpn.

Related Issues (20)

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.