3DGen-Arena / model /model_config.py
ZhangYuhan's picture
add InstantMesh
52a119d
raw
history blame
2.98 kB
from collections import namedtuple
from typing import List
ModelConfig = namedtuple("ModelConfig", ["model_name", "i2s_model", "online_model", "model_path"])
model_config = {}
def register_model_config(
model_name: str, i2s_model: bool, online_model: bool, model_path: str = None
):
config = ModelConfig(model_name, i2s_model, online_model, model_path)
model_config[model_name] = config
def get_model_config(model_name: str) -> ModelConfig:
assert model_name in model_config
return model_config[model_name]
register_model_config(
model_name="dreamfusion",
i2s_model=False,
online_model=False
)
# register_model_config(
# model_name="instant3d",
# i2s_model=False,
# online_model=False
# )
register_model_config(
model_name="grm-t",
i2s_model=False,
online_model=False
)
register_model_config(
model_name="latent-nerf",
i2s_model=False,
online_model=False
)
register_model_config(
model_name="lucid-dreamer",
i2s_model=False,
online_model=False
)
register_model_config(
model_name="magic3d",
i2s_model=False,
online_model=False
)
register_model_config(
model_name="mvdream",
i2s_model=False,
online_model=False
)
register_model_config(
model_name="point-e-t",
i2s_model=False,
online_model=False
)
register_model_config(
model_name="shap-e-t",
i2s_model=False,
online_model=False
)
register_model_config(
model_name="sjc",
i2s_model=False,
online_model=False
)
# register_model_config(
# model_name="dreamgaussian",
# i2s_model=True,
# online_model=False
# )
register_model_config(
model_name="escher-net",
i2s_model=True,
online_model=False
)
register_model_config(
model_name="free3d",
i2s_model=True,
online_model=False
)
register_model_config(
model_name="lgm",
i2s_model=True,
online_model=False
)
register_model_config(
model_name="magic123",
i2s_model=True,
online_model=False
)
register_model_config(
model_name="grm-i",
i2s_model=True,
online_model=False
)
register_model_config(
model_name="openlrm",
i2s_model=True,
online_model=False
)
register_model_config(
model_name="point-e-i",
i2s_model=True,
online_model=False
)
register_model_config(
model_name="shap-e-i",
i2s_model=True,
online_model=False
)
register_model_config(
model_name="stable-zero123",
i2s_model=True,
online_model=False
)
register_model_config(
model_name="syncdreamer",
i2s_model=True,
online_model=False
)
register_model_config(
model_name="triplane-gaussian",
i2s_model=True,
online_model=False
)
register_model_config(
model_name="wonder3d",
i2s_model=True,
online_model=False
)
register_model_config(
model_name="zero123-xl",
i2s_model=True,
online_model=False
)
register_model_config(
model_name='instant-mesh',
i2s_model=True,
online_model=False
)