Comments (6)
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.
how do you solve this problem?
@BestSongEver
from fpn.
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.
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 = dimd
TypeError: unsupported operand type(s) for *: 'int' and 'NoneType'
@BestSongEver
from fpn.
@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.
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)
- alt_opt testing problem
- training loss is nan
- ValueError: attempt to get argmax of an empty sequence
- ValueError: Shape of a new variable (Fast-RCNN/fc6/weights) must be fully defined, but instead was (?, 1024). HOT 2
- cannot convert float infinity to integer
- alt training error HOT 2
- Can you share the link of pretrain ResNet 50 imagenetpre-train model HOT 2
- Encounter this error: tensorflow.python.framework.errors_impl.NotFoundError HOT 3
- Getting -1 for map using VOC07+12 Trainval for validation HOT 3
- InternalError (see above for traceback): Failed to run py callback pyfunc_0: see error log.
- Train New Dataset HOT 3
- no module named cython_bbox
- different shape error when training now data HOT 1
- tensorflow.python.framewor.errors
- UnknownError (see above for traceback): KeyError: b'TRAIN' HOT 1
- Getting -1 for map using VOC07+12 Trainval HOT 6
- running test_net.py gives no detection result HOT 1
- nms model cannot be imported
- Use ResNet101 Model
- Memory leak problem with proposal_layer.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fpn.