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

Error when running inference for dataset #11

Open
sebastianopazo1 opened this issue Dec 11, 2023 · 2 comments
Open

Error when running inference for dataset #11

sebastianopazo1 opened this issue Dec 11, 2023 · 2 comments

Comments

@sebastianopazo1
Copy link

Hi! I was trying to run the inference script for dataset and I obtained the following error.
Traceback (most recent call last):
File "inference_for_dataset.py", line 51, in
from core.config import Config
File "/home/seba/Documents/UniHCP-inference/core/config.py", line 10, in
from .utils import printlog
File "/home/seba/Documents/UniHCP-inference/core/utils.py", line 19, in
import core.fp16 as fp16
File "/home/seba/Documents/UniHCP-inference/core/fp16/init.py", line 1, in
from .opt import *
File "/home/seba/Documents/UniHCP-inference/core/fp16/opt.py", line 8, in
from .scaler import LossScaler
File "/home/seba/Documents/UniHCP-inference/core/fp16/scaler.py", line 2, in
from torch import inf
ImportError: cannot import name 'inf'

Thanks for the help!

@orashi
Copy link
Member

orashi commented Dec 11, 2023

there are some untested fp16 supports left in the code(due to historical reasons) but are not used for either unihcp training or inference, I'm not sure how this line is invoked, but simply removing all calls invoking that line should be just fine.

@TaylorLi123
Copy link

I would like to ask how to run the evaluation part of the code, can you share a inference script? Do I need to download all the mentioned datasets? thank you

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

3 participants