Closed aditdoshi333 closed 3 years ago
This is the precise warning I am getting.
/home/mrobotics2/anaconda3/envs/aanet/lib/python3.7/site-packages/skimage/io/_io.py:141: UserWarning: dataset/pred/right_rect_p0_0_pred.png is a low contrast image warn('%s is a low contrast image' % fname)
Input:
Left
Right
Output from the network
On possible reason can be that the images are not loaded correctly, thus the network is not able to produce reasonable output. Also, our network assumes rectified images as input.
I am rectifying the images. What do you mean by images not loaded properly?
Are you runing our predict.py
for prediction? The input images are firstly loaded to [0, 1], then normalization is applied. You can refer to the code here: https://github.com/haofeixu/aanet/blob/f689abf81ef072b4e50eb480d3a73db66eebda44/predict.py#L134-L138
I am running predict.py only. And input images are getting loaded I checked that but then this warning of skimage is coming
warn('%s is a low contrast image' % fname)
Are you able to run our demo bash scripts/aanet_predict.sh
successfully?
I have the same problem. I use KITTI2012 and KITTI2015 to test the trained model and the network outputs "**** is a low contrast image". How can I solve the problem?
I also met the same problem, but finally found that it is because I did not load the right pretrained annet parameters. Make sure the right file ".pth" is on the folder.
Hello, I am trying to use predict.py for inference on a custom image stereo pair. But consistently I am getting the warning of low contrast images. I tried with different images but still, the warning is the same.