Comments (4)
This is most likely due to your IDE or plug-in not relying on or parsing the help output. Maybe it's expecting the function to have a docstring in a given format? We could try to add one as described here and see if this solves your issue. I don't have time for this at the moment, but feel free to give it a try and contribute it back with a PR if it works.
from pycolmap.
I'm sorry I don't have much knowledge in this subject. I use VSCode with Pylance. From my understanding and what I read online. For Pylance to understand the types of the module it is necessary a stub file. This stubfile can be generated with pybind11-stubgen or with mypy's stubgen. Both of them give me errors when trying to generate the stubs because some missing imports.
Despite this, a stub file is indeed generated but I can't get Pylance to know about this.
I am not a C/C++ developer and I don't know how to modify make files, however, I think this can be added to the build process.
I will be working extensively with colmap and pycolmap for the remainder of the year and would be happy to (eventually) contribute, however, I too don't have enough time to learn the necessary skills for now. Maybe in the future I'll submit a PR regarding this issue.
from pycolmap.
Hi @Coelhomatias, I just tried generating stubfiles with pybind11-stubgen pycolmap
. It will create a file stubs/pycolmap.pyi
. You need to move it into the same folder as the pycolmap.cpython*.so
file (with a source install you can just put it into the pycolmap folder). Then VSCode gives correct types (where available, arguments with type py::object
will show ...
) and auto-complete also works.
from pycolmap.
@Phil26AT Thank you very much, you just saved me a lot of time and effort!
from pycolmap.
Related Issues (20)
- Is the model_aligner feature from COLMAP exposed in pycolmap? HOT 5
- pybind unable to convert pycolmap.Reconstruction.points3D HOT 4
- master branch doesn't have setup.py file HOT 8
- confusion regarding image idx in fused.ply.vis HOT 2
- Error when building from source HOT 2
- bug while install pycolmap HOT 6
- Is there an Easy Debugging Method for COLMAP within Pycolmap? HOT 2
- `'pycolmap.Image' object has no attribute 'rotmat'` HOT 3
- AttributeError: module 'pycolmap' has no attribute 'Database' HOT 2
- Trying to install pycolmap either via the pip or via source not working HOT 4
- camera.img_from_cam not working HOT 1
- May I ask about the changes in the new version? HOT 1
- AttributeError: module 'pycolmap' has no attribute 'patch_match_stereo' HOT 2
- Are Point3D and Image 0 indexed? HOT 2
- Error when importing pycolmap HOT 5
- How to set up scaling sparse models to realistic sizes? HOT 1
- When should a class be bound with shared_ptr as its holder? HOT 2
- pycolmap build from source error HOT 1
- estimate_triangulation result not equal to incremental_mapper result 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 pycolmap.