Skip to content

Commit

Permalink
Fixes image feature extractor setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhoeller19 committed Oct 30, 2024
1 parent 9cc298e commit 2323ded
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def __call__(
print(f"[INFO]: Adding {model_name} to the model zoo")
self.model_zoo[model_name] = self.model_zoo_cfg[model_name]["model"]()

if model_device is not None and self.model_zoo[model_name].device != model_device:
if model_device is not None:
# want to offload vision model inference to another device
self.model_zoo[model_name] = self.model_zoo[model_name].to(model_device)

Expand Down
3 changes: 3 additions & 0 deletions source/extensions/omni.isaac.lab/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
# procedural-generation
"trimesh",
"pyglet<2",
# image processing
"transformers",
"einops", # needed for transformers, doesn't always auto-install
]

PYTORCH_INDEX_URL = ["https://download.pytorch.org/whl/cu118"]
Expand Down

0 comments on commit 2323ded

Please sign in to comment.