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 inference the model on custom image?

See original GitHub issue

Hi,

Thanks for the great work. When I try to inference the model and loading the checkpoints (CO3D), with whatever script I always get such errors: ModuleNotFoundError: No module named 'unsup3d.

@Brummi Could you please guide me on how to inference custom images using the pre-trained CO3D models? Thanks!

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TouqeerAhmadcommented, Oct 27, 2022

Interestingly, I am able to load the model based on CelebA and run the co3d data with it by re-directing the checkpoint path:

cp_path = 'results/models/celebahq_nr/checkpoint005.pth'
model.load_model_state(torch.load(cp_path, map_location=device))

I get numbers like these as output: 19.8Hz Normal_l1: 1.14872 Normal_mse: 0.27270 Normal_dot: 0.40907 Normal_deviation: 47.53636 Albedo_sie: 0.07547 Albedo_l1: 0.85258 Albedo_ssim: 0.75887 Spec_l1: 0.11423 Spec_mse: 0.06137 Spec_sie: 0.04574

1reaction
Brummicommented, Oct 27, 2022

The derender3d module was previously named unsup3d. So I guess this is some relict of refactoring the code for the github release. I am trying to check it right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Object Detection: Training and Inference - ImageAI
ImageAI provides the simple and powerful approach to training custom object detection models using the YOLOv3 architeture. This allows you to train your...
Read more >
Use a custom Container Image - Hugging Face
This means Inference Endpoints will create a unique image artifact derived from your provided image, including all Model Artifacts.
Read more >
How To Create Your Own Custom Image Classifier And ...
Download image dataset; Load and view your data; Create and train a model; Interpret the results; Make a small web-app out of it....
Read more >
Train a custom object detection model using your data
Learn how to train a custom object detection model for Raspberry Pi to detect less common objects like versions of a logo using...
Read more >
Custom Image Classification Model Using TensorFlow Lite ...
... learn how to take a custom image data set and train a classification model. You will then export your model as a...
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