-
Notifications
You must be signed in to change notification settings - Fork 192
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
[ImageManip(7)] [error] Invalid configuration or input image - skipping frame #657
Comments
Hi @geaxgx , |
Hi @Erol444 , I am currently using depthai 2.17.3 |
@Erol444 Please have a look at the following MRE:
Note the impact of the preview size:
Also I wrote yesterday that some of the values that defines the ROI are weird in the context of blazepose. Actually, I was wrong. After further investigation, it turns out they all make sense. If you look for instance at the size of the rotated rectangle I hope the MRE will help you to find out the what the problem is. Thank you ! |
I've run the new firmware with the improved logging and the MRE reports the |
How do I have to interpret the WARP_SWCH_ERR_CACHE_TO_SMALL error. Does it mean there is some kind of limit on the memory available to the ImageManip node for doing its processing ? I guess it could make sense. If so, is there an easy way for the script node to know before it sends the config to the ImageManip node that the config will generate this error ? |
Yes, it is a limit on the available memory for the ImageManip node. The best workaround at the moment is to use a two staged ImageManip, so each ImageManip node is doing a smaller resize (see below). This would be rather cumbersome to implement for your (dynamic) case, but it's probably the best option we have for now.
|
Thanks for the reply. |
In theory, you could first crop a larger rectangle and then crop the final one. And yes, this would only lower the probability of getting the error, not prevent it completely. |
It turns out, we have been able to enlarge the cache available to the ImageManip node in branch The depthai that contains the fix can be installed by running: Please test it and report if everything works. In case the issue persist, it is possible to enlarge the cache manually with |
Thanks @moratom. |
I'm glad it helped @geaxgx. |
@geaxgx we're in the process of creating a PoC for it (targeting v2.18.0), where the additional CMX memory will be allocated automatically. Be on the look out for DepthAI v2.18.0 release by the end of the week (or |
|
Sorry for the late reply @themarpe |
Thanks @geaxgx - merged to |
@themarpe We have tested depthai_blazepose with the new version of depthai (2.18.0) and unfortunately the error happens again. I am a bit surprised because one month ago I wasn't able to get the error with the For sure 2.18.0 brings some improvement since the MRE above is working now with On depthai_blazepose, the problem is more annoying because sometimes the error is different: To easily reproduce one of these 2 errors (unfortunately, I don't know how to select between these 2), clone https://github.com/geaxgx/depthai_blazepose , run: Do you have any thoughts ? What means the |
Hi @geaxgx - thanks for the report. We are in the process of combining a couple of fixes for a new release. WRT resource locker issue, do you mind giving latest |
Thx @themarpe |
Hi, on my Blazepose repository, I am investigating the following issue: geaxgx/depthai_blazepose#29
In summary, we get the message
[ImageManip(7)] [error] Invalid configuration or input image - skipping frame
under certain conditions that are still not perfectly clear. It happens from time to time when the script node sends an ImageManip config to the ImageManip node (7) (the blue arrow in the graph below):The ImageManip configuration is a dynamically calculated setCropRotatedRect operation. The RotatedRect is defined with normalized values (normalizedCoords=True). My first hypothesis was that the config sent was invalid, but if I try to apply the same exact RotatedRect in a very basic example (a pipeline with a ColorCamera and a ImageManip), I don't get any error.
Actually, I wonder if there are possible invalid values in a setCropRotatedRect operation. I have tried with even absurd values without getting any error. I am aware that the output images may be too big, but in that case the error message is different (
[error] Output image is bigger than maximum frame size specified in properties
).Knowing the exact conditions under which the message
[error] Invalid configuration or input image
happens would help me to investigate. Can you help me on this ?The text was updated successfully, but these errors were encountered: