mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
use real checkpoint
This commit is contained in:
@@ -45,7 +45,6 @@ def current_codebase_conversion():
|
||||
|
||||
|
||||
currently_converted_checkpoint = current_codebase_conversion()
|
||||
torch.save(currently_converted_checkpoint, 'currently_converted_checkpoint.pt')
|
||||
|
||||
|
||||
def diff_between_checkpoints(ch_0, ch_1):
|
||||
@@ -84,3 +83,4 @@ def diff_between_checkpoints(ch_0, ch_1):
|
||||
|
||||
|
||||
diff_between_checkpoints(currently_converted_checkpoint, checkpoint)
|
||||
torch.save(checkpoint, "/path/to/checkpoint/")
|
||||
|
||||
@@ -1070,7 +1070,6 @@ class PipelineTesterMixin(unittest.TestCase):
|
||||
|
||||
@slow
|
||||
def test_ldm_uncond(self):
|
||||
# ldm = LatentDiffusionUncondPipeline.from_pretrained("fusing/latent-diffusion-celeba-256", ldm=True)
|
||||
ldm = LatentDiffusionUncondPipeline.from_pretrained("CompVis/latent-diffusion-celeba-256")
|
||||
|
||||
generator = torch.manual_seed(0)
|
||||
|
||||
Reference in New Issue
Block a user