We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
demo.py
According to your code, the input image is in RGB format:
RGB
SparseInst/configs/Base-SparseInst.yaml
Line 33 in fd6fb38
mean
std
Lines 4 to 5 in fd6fb38
SparseInst/demo.py
Line 93 in fd6fb38
DefaultPredictor
SparseInst/sparseinst/d2_predictor.py
Lines 36 to 49 in fd6fb38
BGR
SparseInst/sparseinst/sparseinst.py
Line 61 in fd6fb38
The text was updated successfully, but these errors were encountered:
Hi @leftthomas, I'm so sorry for the late reply. Thank you for reminding me of this problem and I'll check and fix it soon~
Sorry, something went wrong.
@wondervictor it still haven't been fixed now.
@wondervictor Thank you for the wonderful project. I also encountered the same problem, when will it be fixed?
No branches or pull requests
According to your code, the input image is in
RGB
format:SparseInst/configs/Base-SparseInst.yaml
Line 33 in fd6fb38
and the given
mean
andstd
is also inRGB
format:SparseInst/configs/Base-SparseInst.yaml
Lines 4 to 5 in fd6fb38
In
demo.py
, the image is read asRGB
format:SparseInst/demo.py
Line 93 in fd6fb38
and then passed to
DefaultPredictor
:SparseInst/sparseinst/d2_predictor.py
Lines 36 to 49 in fd6fb38
In
DefaultPredictor
, the image is firstly converted intoBGR
format:https://github.com/facebookresearch/detectron2/blob/96c752ce821a3340e27edd51c28a00665dd32a30/detectron2/engine/defaults.py#L309
and finally be normalized according to the given
mean
andstd
:SparseInst/sparseinst/sparseinst.py
Line 61 in fd6fb38
As the given
mean
andstd
is inRGB
format and the image is inBGR
format, so there remains a mismatch.The text was updated successfully, but these errors were encountered: