Comments (13)
I use the pre-trained DORN model. You can download it from https://github.com/hufu6371/DORN .
from pseudo_lidar.
DORN just make the first step depth estimation from RGB image to RGB-depth, but not provide generate point cloud.
from pseudo_lidar.
You can use my code to convert disparity to point clouds. https://github.com/mileyan/pseudo_lidar#convert-the-disparities-to-point-clouds
from pseudo_lidar.
Update: Please add --is_depth
in the command.
from pseudo_lidar.
Hi, do we need to do any processing before using the depth generated by DORN to generate pointcloud?
I use the depth generated with DORN pretrain model, using code here: https://github.com/hufu6371/DORN/blob/master/demo_kitti.py .
Juding from the code, the depth is saved to .png, and the result looks well.
depth = depth_prediction(args.filename)
depth = depth*256.0
depth = depth.astype(np.uint16)
img_id = args.filename.split('/')
img_id = img_id[len(img_id)-1]
img_id = img_id[0:len(img_id)-4]
if not os.path.exists(args.outputroot):
os.makedirs(args.outputroot)
cv2.imwrite(str(args.outputroot + '/' + img_id + '_pred.png'), depth)
However, the point cloud generated with the provided code is obviously wrong. Do I need to do some preprocessing with the depth (for example divided by 256) to use it?
from pseudo_lidar.
I solved the problem described above and successfully generated valid pointcloud with depth generated by DORN.
Some tips:
- You must use the caffe provided in the DORN repository instead of any latest versions. Otherwise, you may encounter the problem of error when loading model prototxt.
- If you choose to generate depth by modifying the kitti demo code (which I think should be the most convenient way), you need to adjust the data type of the depth as indicated in devkit of KITTI Depth by simply adding:
depth = disp_map.astype(np.float) / 256
at here before project depth to point cloud.
from pseudo_lidar.
Thanks so much. I have update the code.
from pseudo_lidar.
Hi, DeriZsy. Just using the depth image to generate the point clouds or need to predict the disparities first? I have already using the DORN caffe version demo code generate the depth image.
from pseudo_lidar.
Hi, DeriZsy. Just using the depth image to generate the point clouds or need to predict the disparities first? I have already using the DORN caffe version demo code generate the depth image.
Use the depth directly. Notice the 'is-depth' flag here in the code for lidar generation in this repo.
from pseudo_lidar.
First move the depth image to predict_disparity folder?
from pseudo_lidar.
First move the depth image to predict_disparity folder?
plz read the code yourself... then you got all the answers... brian is a good thing
from pseudo_lidar.
when the mono depth image generate the point clouds, each need the camera calibration file. If using common other image out of KITTI there is no camera calibration file, so cannot generate to the point clouds.
from pseudo_lidar.
when the mono depth image generate the point clouds, each need the camera calibration file. If using common other image out of KITTI there is no camera calibration file, so cannot generate to the point clouds.
Yes, you need calibration parameters when you generate the point cloud.
from pseudo_lidar.
Related Issues (20)
- Evaluation with pre-trained frustum pointnet HOT 1
- AVOD pre-trained weights for mono pseudo-lidar HOT 1
- have trouble in Train the stereo model
- pseudo lidar HOT 1
- pseudo lidar gives wrong converted point cloud HOT 1
- Can not install pytorch with Python 2.7 HOT 2
- Training for my own custom data HOT 3
- If you need PSMNet but only want to go with python 3, check this repo then HOT 1
- Why pseudo point cloud results in this proposed method seem too far different from LIDAR? HOT 4
- question about dataloader
- About the calibration problem between the true location and the Pseudo-LiDAR HOT 1
- [Feature requested] Python3 support
- How did you handle calib matrices in mono+depth setting HOT 3
- Why does the nan value appear in loss when training the stereo model?
- Confusion about paper table 5
- visualization code cannot get point cloud output HOT 1
- Visualising Pseudo and Real LiDAR HOT 1
- Training Custom dataset
- Nuscenes dataset application
- can you share the dorn project
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 pseudo_lidar.