bokyeong1015 commited on
Commit
07df82c
1 Parent(s): e6fb316

Update demo.py with the released checkpoint

Browse files
Files changed (1) hide show
  1. demo.py +2 -2
demo.py CHANGED
@@ -5,7 +5,7 @@ import copy
5
  import time
6
 
7
  ORIGINAL_CHECKPOINT_ID = "CompVis/stable-diffusion-v1-4"
8
- COMPRESSED_UNET_PATH = "checkpoints/BK-SDM-Small_iter50000"
9
 
10
  DEVICE='cuda'
11
  # DEVICE='cpu'
@@ -18,7 +18,7 @@ class SdmCompressionDemo:
18
  self.pipe_original = StableDiffusionPipeline.from_pretrained(ORIGINAL_CHECKPOINT_ID,
19
  torch_dtype=self.torch_dtype)
20
  self.pipe_compressed = copy.deepcopy(self.pipe_original)
21
- self.pipe_compressed.unet = UNet2DConditionModel.from_pretrained(COMPRESSED_UNET_PATH,
22
  subfolder="unet",
23
  torch_dtype=self.torch_dtype)
24
  if 'cuda' in self.device:
 
5
  import time
6
 
7
  ORIGINAL_CHECKPOINT_ID = "CompVis/stable-diffusion-v1-4"
8
+ COMPRESSED_UNET_ID = "nota-ai/bk-sdm-small"
9
 
10
  DEVICE='cuda'
11
  # DEVICE='cpu'
 
18
  self.pipe_original = StableDiffusionPipeline.from_pretrained(ORIGINAL_CHECKPOINT_ID,
19
  torch_dtype=self.torch_dtype)
20
  self.pipe_compressed = copy.deepcopy(self.pipe_original)
21
+ self.pipe_compressed.unet = UNet2DConditionModel.from_pretrained(COMPRESSED_UNET_ID,
22
  subfolder="unet",
23
  torch_dtype=self.torch_dtype)
24
  if 'cuda' in self.device: