-
-
Notifications
You must be signed in to change notification settings - Fork 55.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++ version of OpenCV 4.8 won't load caffe model #23982
Comments
I suspect that one of the packages that cannot be downloaded is the problem. However, without any hints as to which is the problem I have to try all of them out. That will take about 2 days. Hope somebody can narrow it down a bit. Most of the downloaded stuff should be completely irrelevant to the DNN module. |
@ukoehler Hi, I import this caffe model successfully. I can't reproduce your error. You can try to download the 3-d part lib manually and rebuild opencv. |
Many thanks for your help. That narrows it down nicely. However, I cannot see any attempt to download something called 3-d part lib. Where can I find it and where do I have to save it to For example for ADE I download v.0.1.2a.zip and save it to .cache/ade/fa4b...-v0.1.2a.zip |
I have now manually added everything mentioned in CMakeDownloadLog.txt and still have the same problem. Where is 3d parts lib loaded? |
I have now compiled various versions of OpenCV on a machine connected to the Internet with gcc 5.4 and cannot replicate the problem. I have no idea what the problem is when compiling on the offline machine. |
I created compile_commands.json files for the online and offline builds. For the configuration I used:
with adapted paths on both machines. All files downloaded during configuration have been provided manually on the offline machine
551a552,554
|
OK, I have a clone to the offline virtual machine I used to compile OpenCV online now. Using the same source (with applied cache files by hand) with the same compiler GCC 11.3 still leads to a non-working version offline and a working version online. This explains why:
This seems like a CMake bug:
I save all the output generated while actually compiling OpenCV:
So, there are actually lots of differences. I will need to simplify the output to make more sense of it. I also kept all the output from configuring and that shows no difference:
Looks like I provided the external resource by hand corretly:
|
Found the real reason and will enter a new bug to keep it clearer. |
The real issues are being processed now. |
System Information
OpenCV 4.8.0
Operating System: CentOS
Compiler: GCC11
opencv-python-rolling-4.8.0.20230624
Windows 10
Detailed description
I am loading the same model with OpenCV Python ok and fail to load the model with a compiled version of OpenCV 4.8.
This used to work fine for OpenCV 4.5.2 and fails for 4.7 and 4.8. The compile machine is offline and I provided the correct version of ADE by hand.
Other DNN models load and work fine.
Find the model here https://drive.google.com/file/d/1Q6rOuY3XW0EB1QIFb2xpcsXLhjir22rF/view?usp=sharing and https://drive.google.com/file/d/1-f_S2o76-NjH0_Ke32JqgetX7z-xrPKr/view?usp=sharing .
Steps to reproduce
Compile OpenCV 4.8 offline using the following configuartion:
Compile the test using the following configuration:
This is the code used to load the model:
The error message when running the code (same for OpenCV 4.7.0)
Issue submission checklist
The text was updated successfully, but these errors were encountered: