-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Gluon hybridize is not perfect. #16752
Comments
my yolo code is here.!! |
@JONGGON did any of the suggestions from @sxjscience help? |
@samskalicky Hi sam I think it's not a problem that can be solved by the methods @sxjscience suggests. At present, we do not use hybridize mode |
error message is below ! File "C:/Users/JG/Desktop/GLUON-Detector/YoloV3_Detector/main.py", line 163, in in my opinion |
@JONGGON can you post a minimal example to reproduce the error? Thank you! |
@leezu |
@JONGGON have you tried to move the |
@leezu |
@samskalicky @leezu Hi guys!!! Finally solved. How did i find out? |
Description
(A clear and concise description of what the bug is.)
I am implementing yolov3.
If hybridize is not active, no problem will occur.
When active, the following error is generated:
not one output from hybrid_block
If you output multiple results,
The backward operation doesn't seem to find the right address.
Error Message
Traceback (most recent call last):
File "/home/jg/Downloads/GLUON-Detector/Yolov3_Detector/main.py", line 154, in
plot_class_thresh=plot_class_thresh)
File "/home/jg/Downloads/GLUON-Detector/Yolov3_Detector/train.py", line 353, in run
autograd.backward(total_loss)
File "/home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/autograd.py", line 267, in backward
ctypes.c_void_p(0)))
File "/home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/base.py", line 253, in check_call
raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: Error in operator node_0_backward: [01:34:41] src/imperative/./imperative_utils.h:753: Check failed: g.GetAttr<size_t>("storage_type_num_unknown_nodes") == 0U (6 vs. 0) :
Stack trace:
[bt] (0) /home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x4b09db) [0x7f8c50b709db]
[bt] (1) /home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x263d4d7) [0x7f8c52cfd4d7]
[bt] (2) /home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x263e52f) [0x7f8c52cfe52f]
[bt] (3) /home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x2618805) [0x7f8c52cd8805]
[bt] (4) /home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x2619730) [0x7f8c52cd9730]
[bt] (5) /home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x261d2a5) [0x7f8c52cdd2a5]
[bt] (6) /home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x263d5ef) [0x7f8c52cfd5ef]
[bt] (7) /home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(mxnet::Imperative::Backward(std::vector<mxnet::NDArray*, std::allocatormxnet::NDArray* > const&, std::vector<mxnet::NDArray*, std::allocatormxnet::NDArray* > const&, std::vector<mxnet::NDArray*, std::allocatormxnet::NDArray* > const&, bool, bool, bool)+0x326c) [0x7f8c52d3361c]
[bt] (8) /home/jg/anaconda3/envs/mxnetcuda/lib/python3.6/site-packages/mxnet/libmxnet.so(MXAutogradBackwardEx+0x573) [0x7f8c52c23043]
To Reproduce
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
Steps to reproduce
(Paste the commands you ran that produced the error.)
What have you tried to solve it?
Environment
We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below:
The text was updated successfully, but these errors were encountered: