Comments (1)
Hi @xubin1994
PatchMatch has 3 operations: Sampling, Propagation and Evaluation.
As mentioned in the paper and in implementation, we divide the entire disparity search range into k bins, sample 1 disparity particle from each bin and then perform propagation/ evaluation on each bin separately, forcing the i-th particle to be in a i−th interval.
As shown in Figure 1. of the paper, we apply PatchMatch 2 times, one on the original disparity search range and later on the reduced search range.
-
During the first instance of PatchMatch, the search range of each pixel would be same (say, 0- max_disparity/4), therefore after PatchMatch operations, the i-th sampled disparity particle would be in the i-th bin, for sure.
-
However, during the second instance, there is no guarantee that the disparity search range of neighbouring pixels would be similar. Thus to make sure, that the i-th sampled disparity particle stays in the i-th bin after PatchMatch operations, we need to perform PatchMatch on the normalized disparity space.
Thus, to keep the code generic enough to be applied in cases where neighbouring pixels have different search ranges, we used the two variables: disparity_samples and normalized_disparity_samples
We perform PatchMatch propagation on the normalized disparity space, and then transform the normalized particles to the original space as in lines:
DeepPruner/deeppruner/models/patch_match.py
Line 256 in 7cfd5e6
Hope this helps.
Regards.
from deeppruner.
Related Issues (20)
- Model Weights HOT 2
- RuntimeError: Error(s) in loading state_dict for DataParallel: Missing key(s) in state_dict: "module.feature_extraction.branch1.1.0.weight", HOT 2
- Test image size problem HOT 4
- Default maximum disparity HOT 2
- Parameters: input size, output size, in/out channels, stride and padding for all the layers HOT 2
- IndexError: list index out of range HOT 2
- Deep Pruner Fast on Jetson Series HOT 1
- pre-trained model HOT 1
- tuple indices must be integers or slices, not tuple HOT 1
- Cannot unpack pre-trained models from provided links. HOT 1
- Test my own dataset HOT 1
- Inference speed is much faster than reported in the paper? and the EPE performance is worse? HOT 3
- Issue in reading pfm files HOT 3
- Export to ONNX HOT 1
- submission_kitti.py
- About the training on KITTI HOT 2
- How
- How to understand the one hot filter?
- The source file is corrupt HOT 1
- Experiment on pytorch2.0.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deeppruner.