modify instantiate import
Browse files- model_t2w.py +1 -1
- text2world_hf.py +0 -1
model_t2w.py
CHANGED
|
@@ -26,7 +26,7 @@ from .diffusion_types import DenoisePrediction
|
|
| 26 |
from .blocks import FourierFeatures
|
| 27 |
from .pretrained_vae import BaseVAE
|
| 28 |
from .misc import misc, Color, timer
|
| 29 |
-
from . import instantiate as lazy_instantiate
|
| 30 |
from .log import log
|
| 31 |
|
| 32 |
|
|
|
|
| 26 |
from .blocks import FourierFeatures
|
| 27 |
from .pretrained_vae import BaseVAE
|
| 28 |
from .misc import misc, Color, timer
|
| 29 |
+
from .instantiate import instantiate as lazy_instantiate
|
| 30 |
from .log import log
|
| 31 |
|
| 32 |
|
text2world_hf.py
CHANGED
|
@@ -129,7 +129,6 @@ class DiffusionText2World(PreTrainedModel):
|
|
| 129 |
|
| 130 |
@classmethod
|
| 131 |
def from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs):
|
| 132 |
-
# TODO: this only builds the class, but not download the checkpoints.
|
| 133 |
config = kwargs["config"]
|
| 134 |
other_args = kwargs.copy()
|
| 135 |
other_args.pop("config")
|
|
|
|
| 129 |
|
| 130 |
@classmethod
|
| 131 |
def from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs):
|
|
|
|
| 132 |
config = kwargs["config"]
|
| 133 |
other_args = kwargs.copy()
|
| 134 |
other_args.pop("config")
|