Comments (6)
Thanks for the question! @mrharicot is probably best placed to answer this.
from monodepth2.
Hi,
We were originally doing experiments with COLMAP, which gave us a focal length for some of the sequences. I then used an average of these and set the principal point to the center of the image.
For reference here is the intrinsics we used:
self.K = np.array([[0.6, 0, 0.5, 0],
[0, 1.066, 0.5, 0],
[0, 0, 1, 0],
[0, 0, 0, 1]], dtype=np.float32)
We assumed the camera to be linear, but they actually show quite a bit of distortion.
I hope this helps!
from monodepth2.
Thanks for your kind replay!
Actually, I have tested some method to find the intrinsic parameters of a wild monocular video. Basically, I followed a bundle adjustment method to solve the parameters by optimizing the reprojection of feature points. However, it can be proved that when the camera is moving without rotation (which is a common case in these videos) the focal length is not observable. With small rotations, it also cannot be solved very well.
On the other hand, since the rotation of adjacent frames is small, the focal length actually does not matter too much in the error term.
I do not know how to better solve the intrinsic parameters when trained on wild videos. If you have any other thoughts, please let me know.
Thanks again
Kaixuan
from monodepth2.
I would look at Google's recent paper where they also learn the camera calibration parameters
https://arxiv.org/abs/1904.04998
from monodepth2.
Yes... Thanks for the sharing.
If we can solve it using multiview geometry, maybe it is better to solve it explicitly than learning. Thanks, maybe the community needs more research on this topic.
from monodepth2.
Can the calibration parameters be set somehow during inference? For example, if the correct params for the sequence are computed using Colmap and then set during inference to improve the estimation?
from monodepth2.
Related Issues (20)
- While reading groundtruth depth-map, why is it required to divide by 256 after converting PIL.Image to np.array ? HOT 2
- finetune on custom dataset with provided model HOT 1
- onnx
- What are the units in which the results are predicted HOT 2
- A problem when I train my repo code HOT 1
- Can't run the initial training
- Network inference time problem
- The requested array has an inhomogeneous shape after 1 dimensions. HOT 5
- Write split file HOT 1
- obtained some very strange depth maps HOT 4
- The difference in the intrinsic matrix affects the results
- Question about image resolution
- question for the Data Preparation
- Why is smooth_loss divided by 2**scale?
- Questions about the meaning of grid in the F.grid_sample function
- the eval file about 'gt_depths.npz'
- Run on Google Colab,
- Run on Google Colab, but out of System RAM
- The new constraint about pose is not useful?
- RuntimeError: CuDNN error: CUDNN_STATUS_SUCCESS HOT 2
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 monodepth2.