Inference Issue
Closed this issue · 2 comments
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 ?
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
.
yes, correct it was a python issue !
It's working now !
Thank you !