Comments (15)
I solve this problem downgrading to opencv 2.4
from dynaslam.
@alexs7 the python environment its okay, did you are using the opencv 2.4? how I said in this topic, my issues stopped after downgrade the opencv version
from dynaslam.
@y9luiz I got my own fork here with updated details on how to build: https://github.com/alexs7/DynaSLAM
from dynaslam.
the test script src/python/Check.py
is working nicely, so I believe that problem is from CPP side
from dynaslam.
OS info: Ubuntu 20.04 x86_64
OpenCV Version: 3.4.7
Numpy Version: 1.21.5
g++ Version: 7.5.0
from dynaslam.
@y9luiz hello, have you got DynaSLAM working now ? can I ask what we should pass for the "PATH_TO_MASKS" ?
from dynaslam.
@y9luiz hello, have you got DynaSLAM working now ? can I ask what we should pass for the "PATH_TO_MASKS" ?
Yeah @alexs7 , now it's working, the parameter PATH_TO_MASKS is the folder that u want to store the masks generated by the algorithm
from dynaslam.
I run this:
./Examples/RGB-D/rgbd_tum Vocabulary/ORBvoc.txt Examples/RGB-D/TUM3.yaml ../datasets/TUM/rgbd_dataset_freiburg3_walking_rpy/ Examples/RGB-D/associations/fr3_walking_rpy.txt Examples/RGB-D/masks_temp Examples/RGB-D/masks_temp_output
and I get this:
Creating net instance...
Loading net parameters...
[ WARN:[email protected]] imread_('no_save/no_file'): can't open/read file: check file path/integrity
[1] 17264 bus error (core dumped) ./Examples/RGB-D/rgbd_tum Vocabulary/ORBvoc.txt Examples/RGB-D/TUM3.yaml
Did you have this error ?
from dynaslam.
I run this:
./Examples/RGB-D/rgbd_tum Vocabulary/ORBvoc.txt Examples/RGB-D/TUM3.yaml ../datasets/TUM/rgbd_dataset_freiburg3_walking_rpy/ Examples/RGB-D/associations/fr3_walking_rpy.txt Examples/RGB-D/masks_temp Examples/RGB-D/masks_temp_output
and I get this:
Creating net instance...
Loading net parameters...
[ WARN:[email protected]] imread_('no_save/no_file'): can't open/read file: check file path/integrity
[1] 17264 bus error (core dumped) ./Examples/RGB-D/rgbd_tum Vocabulary/ORBvoc.txt Examples/RGB-D/TUM3.yamlDid you have this error ?
I have no ideia about your error.
Are you alredy tried to execute the script
src/python/Check.py
?
this script should test your python enviroment and check if is well configured
from dynaslam.
@y9luiz sorry for the late reply. here is what I get when I run that script:
python2.7 src/python/Check.py
/home/alex/.local/lib/python2.7/site-packages/pycocotools/coco.py:49: UserWarning:
This call to matplotlib.use() has no effect because the backend has already
been chosen; matplotlib.use() must be called before pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.The backend was originally set to 'TkAgg' by the following code:
File "src/python/Check.py", line 8, in
import matplotlib.pyplot as plt
File "/home/alex/.local/lib/python2.7/site-packages/matplotlib/pyplot.py", line 71, in
from matplotlib.backends import pylab_setup
File "/home/alex/.local/lib/python2.7/site-packages/matplotlib/backends/init.py", line 17, in
line for line in traceback.format_stack()import matplotlib; matplotlib.use('Agg')
Using TensorFlow backend.
Initializing Mask RCNN netwFork...
./src/python
WARNING:tensorflow:From /home/alex/.local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
WARNING:tensorflow:From /home/alex/.local/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py:3144: calling dropout (from tensorflow.python.ops.nn_ops) with keep_prob is deprecated and will be removed in a future version.
Instructions for updating:
Please userate
instead ofkeep_prob
. Rate should be set torate = 1 - keep_prob
.
WARNING:tensorflow:From /home/alex/DynaSLAM/src/python/model.py:746: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version.
Instructions for updating:
tf.py_func is deprecated in TF V2. Instead, use
tf.py_function, which takes a python function which manipulates tf eager
tensors instead of numpy arrays. It's easy to convert a tf eager tensor to
an ndarray (just call tensor.numpy()) but having access to eager tensors
meanstf.py_function
s can use accelerators such as GPUs as well as
being differentiable using a gradient tape.2022-01-18 13:25:28.892448: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2022-01-18 13:25:28.912843: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3199980000 Hz
2022-01-18 13:25:28.913257: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x56177eebd2e0 executing computations on platform Host. Devices:
2022-01-18 13:25:28.913277: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (0): ,
Initialated Mask RCNN network...
Mask R-CNN is correctly working
from dynaslam.
@y9luiz except some warnings this shouls be OK right ? What do you get ?
from dynaslam.
@y9luiz yes fixed it by downgrading to opencv 2.4
did you get the inpainting code working?
from dynaslam.
@alexs7 no I never try to use the impainting functionality
from dynaslam.
Nice job @alexs7!
from dynaslam.
Hello, I'm trying to run this project and for the mask-rcnn approach I'm facing some troubles ...
A unexpected segmentation fault occurs when I try to run with the Mask-RCNN enabled and after a few debugging I found this:
the problem occurs when I call GetDynSeg at line 62 of the file
src/MaskNet.cc
PyObject* py_mask_image = PyObject_CallMethod(this->net, const_cast<char*>(this->get_dyn_seg.c_str()),"(O)",py_image);
this line jumps to the python script
src/python/MaskRCNN.py
, more specificly to function
def GetDynSeg(self, image,image2=None)
the function expect that the second argument (image) must be a numpy array like any other python OpenCV image, but
when the code try to get the content from the image it will produce a segmentation fault
My conclusion was that numpy array is not been correctly serialized at NDArrayConverter::toNDArray() function
do you slove? i have same problem? please help god!
from dynaslam.
Related Issues (20)
- how to check the map of dynaslam
- How to get the evaluation result for KITTI odometry 16-21 in DyanSLAM2?
- my version: numpy=1.16.6 tensorflow=1.12.3 python=2.7 how to slove the follow problem? HOT 1
- 运行数据集 HOT 2
- make error HOT 1
- why opencv3 can compile success ,but opencv 2.4.13 compile fail HOT 1
- problem on Check.py (ValueError: Exception encountered when calling layer "mrcnn_bbox" (type Reshape).)
- All masks pics output is pure black HOT 1
- Why doesn't working the KITTI odometry dataset in some data?
- Loading Mask R-CNN. This could take a while... Importing Mask R-CNN Settings... 段错误 (核心已转储)
- Light Tracking not working because Tracking is not initialized...
- DynaSLAM2
- Dynaslam2
- Arxiv review version said The project code will be released upon acceptance. [The RAL published version deleted this sentence] HOT 2
- How to reduce memory usage
- When can open source the code of dyanslam II?
- Python.h error
- Libffi Error - RGB-B build not generated
- python 版本
- Can dynaslam take the static map as input?
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 dynaslam.