haofeixu / aanet

[CVPR'20] AANet: Adaptive Aggregation Network for Efficient Stereo Matching
Apache License 2.0
524 stars 102 forks source link

Bad prediction results when use pretrained model #31

Closed Hahaemmm closed 4 years ago

Hahaemmm commented 4 years ago

When I try to run the predict file using the pictures I took, I get very poor prediction results. Is there something wrong with me?

QQ截图20200723223836

haofeixu commented 4 years ago

I believe there is something wrong in your config. Can you successfully run our demo (https://github.com/haofeixu/aanet/blob/master/scripts/aanet_predict.sh)?

Hahaemmm commented 4 years ago

I can run your demo successfully

haofeixu commented 4 years ago

Have your pictures been rectified? Alternatively, can you send your pictures to me (xhf@mail.ustc.edu.cn)? Thanks!

sunshinnnn commented 4 years ago

I meet similar bug when using your pretrained StereoNet - AA. Here is my predict script

#!/usr/bin/env bash

# Predict
CUDA_VISIBLE_DEVICES=1 python predict.py \
--data_dir demo \
--pretrained_aanet pretrained/stereonet-aa_sceneflow-1fbe2dea.pth \
--feature_type stereonet \
--feature_similarity difference \
--num_downsample 3 \
--aggregation_type stereonet \
--refinement_type stereonet \
--no_intermediate_supervision

Could tell me more about your StereoNet - AA, since you didn't make it clear how to use this model and what is the meaning of -AA. @haofeixu

haofeixu commented 4 years ago

We have included the inference script for StereoNet-AA(https://github.com/haofeixu/aanet/blob/master/scripts/stereonet-aa_inference.sh), and AA means replacing the cost aggregation architecture with our proposed Adaptive Aggregation modules (we have made it clear in our paper).

Your config is not correct, you can refer to https://github.com/haofeixu/aanet/blob/master/scripts/stereonet-aa_inference.sh for the correct usage.

sunshinnnn commented 4 years ago

COOL! Thanks! And Sorry for missing the inference script of stereonet... Really good code structure and nice response.