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

Inference Issue #35

Closed
yyash-patel opened this issue Apr 2, 2024 · 2 comments
Closed

Inference Issue #35

yyash-patel opened this issue Apr 2, 2024 · 2 comments

Comments

@yyash-patel
Copy link

yyash-patel commented Apr 2, 2024

Hi,

I run the inference command -

python -m openlrm.launch infer.lrm --infer $INFER_CONFIG model_name=$MODEL_NAME image_input=$IMAGE_INPUT export_video=$EXPORT_VIDEO export_mesh=$EXPORT_MESH

I get the erro as shown in the below error stack -

Traceback (most recent call last):
File "/simplstor/ypatel/anaconda3/envs/lrm/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/simplstor/ypatel/anaconda3/envs/lrm/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/simplstor/ypatel/workspace/OpenLRM/openlrm/launch.py", line 18, in
from openlrm.runners import REGISTRY_RUNNERS
File "/simplstor/ypatel/workspace/OpenLRM/openlrm/runners/init.py", line 20, in
from .train import *
File "/simplstor/ypatel/workspace/OpenLRM/openlrm/runners/train/init.py", line 16, in
from .lrm import LRMTrainer
File "/simplstor/ypatel/workspace/OpenLRM/openlrm/runners/train/lrm.py", line 24, in
from .base_trainer import Trainer
File "/simplstor/ypatel/workspace/OpenLRM/openlrm/runners/train/base_trainer.py", line 54, in
class Trainer(Runner):
File "/simplstor/ypatel/workspace/OpenLRM/openlrm/runners/train/base_trainer.py", line 215, in Trainer
@ control(synchronized=True)
TypeError: 'staticmethod' object is not callable

What could be the issue ?

@ZexinHe
Copy link
Collaborator

ZexinHe commented Apr 3, 2024

Hi,

It seems like a issue with python version <=3.9.
https://stackoverflow.com/questions/12718187/python-version-3-9-calling-class-staticmethod-within-the-class-body.

Plz try updating your python to at least 3.10. It's highly recommended to use python>=3.11.

@yyash-patel
Copy link
Author

yes, correct it was a python issue !

It's working now !

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

2 participants