Spaces:
Sleeping
Sleeping
Download third_part/ganimation_replicate/model/__init__.py from palette-lab/LipsyncDocker: direct link, hf CLI and curl.
- Browser
- Download file 414 Bytes
-
https://huggingface.co/spaces/palette-lab/LipsyncDocker/resolve/main/third_part/ganimation_replicate/model/__init__.py
- Command line
-
hf download hf://spaces/palette-lab/LipsyncDocker/third_part/ganimation_replicate/model/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/palette-lab/LipsyncDocker/resolve/main/third_part/ganimation_replicate/model/__init__.py
414 Bytes
| from .base_model import BaseModel | |
| from .ganimation import GANimationModel | |
| from .stargan import StarGANModel | |
| def create_model(opt): | |
| # specify model name here | |
| if opt.model == "ganimation": | |
| instance = GANimationModel() | |
| elif opt.model == "stargan": | |
| instance = StarGANModel() | |
| else: | |
| instance = BaseModel() | |
| instance.initialize(opt) | |
| instance.setup() | |
| return instance | |