Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in regression for depth/normal prediction using infer.py #21

Open
FantasticOven2 opened this issue Oct 29, 2024 · 1 comment
Open

Comments

@FantasticOven2
Copy link

Hello author,

Thanks for this amazing work!

When I try to run bash infer.sh with MODE="regression, I got the following error:
lotus_regression_bug

@b-burton
Copy link

Hey @FantasticOven2 I had the same issue as you. It is caused when trying to use the regression pipeline but you are inputting the generative model. You can see from the first line in your output you are loading the generative model "INFO:root: Successfully loading pipline from jingheya/lotus-depth-g-v1-0"

To fix this issue change:
export CHECKPOINT_DIR="jingheya/lotus-depth-g-v1-0"
To
export CHECKPOINT_DIR="jingheya/lotus-depth-d-v1-0"

Or if you are doing command line calls change the model flag from:

--pretrained_model_name_or_path="jingheya/lotus-depth-g-v1-0"
To
--pretrained_model_name_or_path="jingheya/lotus-depth-d-v1-0"

Keep in mind if you are doing normal estimation it is also a different model you need use than if you are doing depth estimation. The list of models available (and their paths) can be found here: https://github.com/EnVision-Research/Lotus?tab=readme-ov-file#choose-your-model

FYI the different model pipelines are quite large (>3GB)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants