question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to reconstruct 3D scene from just one rgb image with pretrained model?

See original GitHub issue

Hello @themasterlink Thanks for your great work for Indoor SingleViewReconstruction. Sorry that I’m newer in this deep learning task. I’m confused about how to reconstruct a 3D scene from just one RGB image with a pre-trained model. The input image may be like the following: test

After analyzing the readme of all subfolders and discussion in #3, I am still very confused about how a jpg --> I try to develop the SingleJPGReconstruction.py with the following step:

  1. Gain normal_img from the test.jpg with UNetNormalGen: I am blocked in h5py input and setting_file.yml. the input of generate_encoded_outputs.py is h5py and settings_file.yml that is seemed to be generated by BlenderProc. I have no idea how to generate this input from a single image without BlenderProc. I tried to use command python generate_predicted_normals.py --model_path model/model.ckpt --path ../data in SingleViewReconstruction/SingleViewReconstruction.

  2. Combine normal_image and color_image into one hdf5 file. #3 says the data should minus normal_mean_image and color_mean_image The color_normal_mean.hdf5 is used here:

SingleViewReconstruction/SingleViewReconstruction/generate_tf_records.py

Line 123 in f1475ca

 normal_o -= normal_mean_img 
and here:

SingleViewReconstruction/SingleViewReconstruction/src/DataSetLoader.py

Line 95 in f1475ca
color_img -= self.mean_img 
  1. try predict_datapoint.py I tried command python predict_datapoint.py data/color_normal_mean.hdf5 --output OUTPUT --use_pretrained_weights. there wasn’t train*.tf_record.

The plan of course didn’t work. Could you give me some help on how to make it? Thanks sincerely.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wenyihan4396commented, Aug 20, 2022

great job

0reactions
tianyiltcommented, Jan 21, 2021

Thank you a lot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Panoptic 3D Scene Reconstruction From a Single RGB Image ...
Paper: https://arxiv.org/pdf/2111.02444.pdfUnderstanding 3D scenes from a single image is fundamental to a wide varietyof tasks, such as for ...
Read more >
Panoptic 3D Scene Reconstruction from a Single RGB Image
We thus propose a new approach for holistic 3D scene understanding from a single RGB image which learns to lift and propagate 2D...
Read more >
Panoptic 3D Scene Reconstruction From a ... - OpenReview
We propose a new approach for panoptic 3D scene reconstruction by ... the object geometry for detected objects in an RGB image, but...
Read more >
CoReNet: Coherent 3D scene reconstruction from a single ...
Advances in deep learning techniques have allowed recent work to reconstruct the shape of a single object given only one RBG image as...
Read more >
Coherent 3D scene reconstruction from a single RGB image
Advances in deep learning techniques have allowed recent work to reconstruct the shape of a single object given only one RBG image as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found