Git Product home page Git Product logo

Comments (13)

mileyan avatar mileyan commented on July 1, 2024

I use the pre-trained DORN model. You can download it from https://github.com/hufu6371/DORN .

from pseudo_lidar.

bright0072876 avatar bright0072876 commented on July 1, 2024

DORN just make the first step depth estimation from RGB image to RGB-depth, but not provide generate point cloud.

from pseudo_lidar.

mileyan avatar mileyan commented on July 1, 2024

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.

mileyan avatar mileyan commented on July 1, 2024

Update: Please add --is_depth in the command.

from pseudo_lidar.

DeriZSY avatar DeriZSY commented on July 1, 2024

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)

0000000013_depth_pred

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.

DeriZSY avatar DeriZSY commented on July 1, 2024

I solved the problem described above and successfully generated valid pointcloud with depth generated by DORN.
Some tips:

  1. 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.
  2. 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.

mileyan avatar mileyan commented on July 1, 2024

Thanks so much. I have update the code.

from pseudo_lidar.

bright0072876 avatar bright0072876 commented on July 1, 2024

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.

DeriZSY avatar DeriZSY commented on July 1, 2024

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.

bright0072876 avatar bright0072876 commented on July 1, 2024

First move the depth image to predict_disparity folder?

from pseudo_lidar.

DeriZSY avatar DeriZSY commented on July 1, 2024

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.

bright0072876 avatar bright0072876 commented on July 1, 2024

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.

mileyan avatar mileyan commented on July 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.