janinethoma / image_navigation_python Goto Github PK
View Code? Open in Web Editor NEWPython demo to our CVPR'19 publication: Mapping, Localization and Path Planning for Image-based Navigation using Visual Features and Map
Python demo to our CVPR'19 publication: Mapping, Localization and Path Planning for Image-based Navigation using Visual Features and Map
Hi, Janine
I've tried the code just running demo.py
and everything goes fine.
Then, just to check the sampling, I renamed the temp.pickle
and rerun the demo.
Then, this error arised:
File "demo_COLD.py", line 191, in <module>
main()
File "demo_COLD.py", line 135, in main
flow_lm = sample_with_flow(ref['xy'], edges, source_idx, sink_idx, geo_dists, feat_dists, num_landmarks)
File ..., line 103, in sample_with_flow
M.constraint(stack, mf.Domain.inRotatedQCone().axis(2)) # Each row is in a rotated quadratic cone
File "/usr/local/lib/python3.7/dist-packages/mosek/fusion/impl/_implementation.py", line 3554, in constraint
return self._constraint_Lmosek_4fusion_4Expression_2Lmosek_4fusion_4ConeDomain_2(*args)
File "/usr/local/lib/python3.7/dist-packages/mosek/fusion/impl/_implementation.py", line 6184, in _constraint_Lmosek_4fusion_4Expression_2Lmosek_4fusion_4ConeDomain_2
return (self.__constraint_1_SLmosek_4fusion_4Expression_2Lmosek_4fusion_4ConeDomain_2("",_0,_1))
File "/usr/local/lib/python3.7/dist-packages/mosek/fusion/impl/_implementation.py", line 7668, in __constraint_1_SLmosek_4fusion_4Expression_2Lmosek_4fusion_4ConeDomain_2
_22=_19[_21]
IndexError: index 2 is out of bounds for axis 0 with size 2
The trouble line was the line 103 in sample_with_flow.py
:
M.constraint(stack, mf.Domain.inRotatedQCone().axis(2)) # Each row is in a rotated quadratic cone
Checking the dimensions of the variable stack
, its shape is [898588, 3]
.
So, to solve the problem, I think you have to set:
M.constraint(stack, mf.Domain.inRotatedQCone().axis(**1**)) # Each row is in a rotated quadratic cone
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.