-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
inference_segmentor
Fails on list of NDarrays
#1643
Comments
According to the error Please check the data type of input image |
Thank you for the quick reply! I passed a list of loaded images as specified in the documentation and I get the error above.
How can I run |
Could you please share with us which part of the document you referred? |
Hi, not sure if @alexgoft is referring to this mmsegmentation/mmseg/apis/inference.py Line 75 in 9cf2d23
But I am facing the same issue of not being able to pass a List[ndarray] to inference_segmentor. Thanks! |
Hi, I also encounter this issue. this is what i did for passing list. |
Hi! Thank you for your quick response. I'm more curious about the reasoning behind a lack of class weighting though. Especially with the heavy imbalance of certain classes such as poles and trains in the Cityscapes dataset, it seems that class weighting would be necessary for the model to perform well as various CNN semantic segmentation architectures such as UNet or LinkNet utilize it in their experiments. |
I'm trying to run the
segmentor
on a list of images (NDArray
s) via the functioninference_segmentor
. It seems, at according to the function description, that it's possible:However, i get the following error:
When removing
[LoadImage()]
fromtest_pipeline
in the code above, this error replaced with:The configuration used:
What am I doing wrong? it seems that inference on a list of images is not really supported.
The text was updated successfully, but these errors were encountered: