-
Implement the function
sad
, which given a window size and maximum disparity ( D ), takes a stereo image pair as input and returns a disparity map, computed from the left to the right image. (10 points) -
Create a visualization of the computed disparities by implementing the function
visualize_disparity
. It’s a good idea to also visualize the input images to see if the results are sensible. (10 points) -
Experiment with different window sizes (for example 3, 7, 15) and report which one leads to better visual results and why? In case you were not able to solve the previous exercises, you can use the provided disparity maps in the
task3/examples/
folder. (5 points) -
Why do you think the block matching approach fails to lead to good estimations around homogeneous regions such as the road? (5 points)
-
Develop a Siamese Neural Network architecture and implement the function
calculate_similarity_score
. For the Siamese Neural Network, you can use theStereoMatchingNetwork
class. In particular, implement the__init__
andforward
methods to initialize the layers and define the forward pass. Details on the architecture can be found in the skeleton code and the reference paper. (10 points) -
Implement the functions
hinge_loss
andtraining_loop
. After implementation, you can use the scripttrain.py
to train your Siamese Neural Network. Details about the hinge loss and training process can be found in the reference paper. (10 points) -
Try to improve the network by finding better hyperparameters. For example, you can vary the number of training iterations or the number of filters in the convolutional layers. Explain your findings. (10 points)
-
Implement the function
compute_disparity_CNN
and compare the visualization of the disparity maps from the Siamese Neural Network to the ones obtained by the block matching algorithm. Which predictions are better and why? Can you find regions in the scenes where the differences in predictions are most dominant? (If you were not able to solve the previous exercises, you can use the provided disparity maps in thetask3/examples/
folder.) (10 points)
-
Notifications
You must be signed in to change notification settings - Fork 0
Bobyue0118/Siamese-Neural-Network-for-Disparity-Estimation
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published