diffusion-model-framework 0.1.2rc2__tar.gz → 0.1.2rc3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/PKG-INFO +1 -1
- diffusion_model_framework-0.1.2rc3/diffusion_models/__init__.py +1 -0
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/diffusion_models/utils/schemas.py +3 -2
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/pyproject.toml +1 -1
- diffusion_model_framework-0.1.2rc2/diffusion_models/__init__.py +0 -1
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/README.md +0 -0
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/diffusion_models/diffusion_inference.py +0 -0
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/diffusion_models/diffusion_trainer.py +0 -0
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/diffusion_models/gaussian_diffusion/__init__.py +0 -0
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/diffusion_models/gaussian_diffusion/base_diffuser.py +0 -0
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/diffusion_models/gaussian_diffusion/beta_schedulers.py +0 -0
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/diffusion_models/gaussian_diffusion/gaussian_diffuser.py +0 -0
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/diffusion_models/models/SimpleUnet.py +0 -0
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/diffusion_models/models/__init__.py +0 -0
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/diffusion_models/models/base_diffusion_model.py +0 -0
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/diffusion_models/utils/__init__.py +0 -0
- {diffusion_model_framework-0.1.2rc2 → diffusion_model_framework-0.1.2rc3}/diffusion_models/utils/tensorboard.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.2-rc.3"
|
|
@@ -83,16 +83,17 @@ class Checkpoint:
|
|
|
83
83
|
"""
|
|
84
84
|
|
|
85
85
|
@classmethod
|
|
86
|
-
def from_file(cls, file_path: str) -> "Checkpoint":
|
|
86
|
+
def from_file(cls, file_path: str, map_location: Optional[str] = None) -> "Checkpoint":
|
|
87
87
|
"""Load and instantiate a checkpoint from a file.
|
|
88
88
|
|
|
89
89
|
Args:
|
|
90
90
|
file_path: The path to the checkpoint file.
|
|
91
|
+
map_location: A function, torch. device, string or a dict specifying how to remap storage location.
|
|
91
92
|
|
|
92
93
|
Returns:
|
|
93
94
|
A checkpoint instance.
|
|
94
95
|
"""
|
|
95
|
-
checkpoint = torch.load(f=file_path, weights_only=True)
|
|
96
|
+
checkpoint = torch.load(f=file_path, weights_only=True, map_location=map_location)
|
|
96
97
|
checkpoint = cls(**checkpoint)
|
|
97
98
|
beta_scheduler_config = BetaSchedulerConfiguration(
|
|
98
99
|
**checkpoint.beta_scheduler_config
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.2-rc.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|