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:
- TensorFlow issue: Expected int32, got list containing Tensors of type ‘_Message’ instead.
- Cv2.dnn read model error [How to Solve]
- How to Solve Windows emacs Build lisp slime error
- OpenCV4 Error: imread(argv[1], CV_LOAD_IMAGE_COLOR);
- [Solved] Compile the program error: undefined reference to `cv::dnn::dnn4_v20210301::Net::~Net()‘
- OpenCV(-206:Bad flag (parameter or structure field)) Unrecognized or unsupported array type [How to Solve]
- [Solved] Opencv3. X fatal error: opencv2/nonfree/nonfree.hpp: there is no such file or directory
- MAC: How to modify the docker container error [screen is terminating]
- CMake Error: The source directory “opencv Install Catalog“ does not appear to contain CMakeLists.txt.
- How to Solve Opencv Error: CPP: 1557 error
- [Solved] OpenCV Train the class Error: Bad argument & Error: Insufficient memory
- [Solved] Opencv Compile Error: (CMake Error: The following variables are used in this project, but they are set to not)
- Yolox_s.pth Convert to tensorRT Error: AttributeError: ‘tensorrt.tensorrt.Builder‘ object has no attribute ‘max_workspace_size‘
- Numpy.exp Function Error ‘Float’ object has no attribute ‘exp’
- [TensorRT] INTERNAL ERROR: Assertion failed: mem = nullpt
- [Solved] Docker Error: SyntaxError: Non-ASCII character ‘\xe5‘ in file xxx
- [Solved] ORB_SLAM3 Compile Error: opencv4.0 not found four
- [Solved] OpenCV Error: AttributeError: module ‘cv2‘ has no attribute ‘data‘
- [Solved] OpenCv5 error: (-215:Assertion failed) !_descriptors.empty() in function ‘add‘
- Internalerror: GPU sync failed error (How to Solve)