Problem description
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\dnn\src\dnn.cpp:562: error: (-2:Unspecified error) Can't create layer "feature_fusion/truediv" of type "RealDiv" in function 'cv::dnn::dnn4_v20191202::LayerData::getLayerInstance'
Solution:
It has three places to modified in model.py
1. Comment out this line: #images = mean_image_subtraction(images)
2. c1_1 = slim.conv2d(tf.concat([g[i-1], f[i]], axis=3), num_outputs[i], 1)
3. pi2 = 0.5 * np.pi
angle_map = (slim.conv2d(g[3], 1, 1, activation_fn=tf.nn.sigmoid, normalizer_fn=None) - 0.5) * pi2
F_geometry = tf.concat([geo_map, angle_map], axis=3)
Read More:
- [Solved] Cmake compile opencv open-source project Error: but it set OpenCV_FOUND to FALSE so package “OpenCV” is considered to be…
- [Solved] OpenCV Error: AttributeError: module ‘cv2‘ has no attribute ‘data‘
- OpenCV4 Error: imread(argv[1], CV_LOAD_IMAGE_COLOR);
- [Solved] Opencv3. X fatal error: opencv2/nonfree/nonfree.hpp: there is no such file or directory
- [Solved] OpenCV error: #error “This header with legacy C API declarations has been removed from OpenCV.
- Opencv Can not Find opencv2/gpu/gpu.hpp [How to Solve]
- [Solved] Opencv Error: Error: Assertion failed (data) in cv::Mat::at, file … mat.inl.hpp, line 897(Accessed pixels of non-existent matrix)
- Cv2.dnn read model error [How to Solve]
- How to Solve Keras calls plot_model error
- [Solved] ORB_SLAM3 Compile Error: opencv4.0 not found four
- OpenCV VideoWriter Failed to Start [How to Solve]
- [Solved] GDAL+OPENCV often reports errors when processing remote sensing impacts
- CMake Error: The source directory “opencv Install Catalog“ does not appear to contain CMakeLists.txt.
- [Solved] Opencv error: assertion__acrt_first_block == header
- [Solved] OpenCv5 error: (-215:Assertion failed) !_descriptors.empty() in function ‘add‘
- How to Solve Opencv Error: CPP: 1557 error
- [Solved] OpenCV Train the class Error: Bad argument & Error: Insufficient memory
- How to Solve OpenCV CVUI Error: LINK2019
- Opencv c++ Read Video Error: capture.isOpened() Return false
- [Solved] Opencv Call yolov3 Error: IndexError: invalid index to scalar variable