kongzhecn / OMG

[ECCV 2024] OMG: Occlusion-friendly Personalized Multi-concept Generation In Diffusion Models
https://kongzhecn.github.io/omg-project/
637 stars 44 forks source link

TypeError: 'type' object is not subscriptable #13

Open Brothelmdzz opened 5 months ago

Brothelmdzz commented 5 months ago

Traceback (most recent call last): File "inference_instantid.py", line 17, in from src.efficientvit.models.efficientvit.sam import EfficientViTSamPredictor File "/root/caojiyuan/code/OMG/src/efficientvit/models/efficientvit/init.py", line 5, in from .backbone import File "/root/caojiyuan/code/OMG/src/efficientvit/models/efficientvit/backbone.py", line 8, in from src.efficientvit.models.nn import (ConvLayer, DSConv, EfficientViTBlock, File "/root/caojiyuan/code/OMG/src/efficientvit/models/nn/init.py", line 5, in from .act import File "/root/caojiyuan/code/OMG/src/efficientvit/models/nn/act.py", line 9, in from src.efficientvit.models.utils import build_kwargs_from_config File "/root/caojiyuan/code/OMG/src/efficientvit/models/utils/init.py", line 6, in from .network import * File "/root/caojiyuan/code/OMG/src/efficientvit/models/utils/network.py", line 61, in def build_kwargs_from_config(config: dict, target_func: callable) -> dict[str, any]: TypeError: 'type' object is not subscriptable I imported all the models and dependencies as guided. I ran the inference_instantid.py with efficientvit setup, and I got above error.