primecai commited on
Commit
007257f
·
1 Parent(s): 05bfdcf

loading bug

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -15,7 +15,8 @@ CHECKPOINT = "primecai/dsd_model"
15
  def init_pipeline():
16
  global pipe
17
  transformer = FluxTransformer2DConditionalModel.from_pretrained(
18
- os.path.join(CHECKPOINT, "transformer"),
 
19
  torch_dtype=torch.bfloat16,
20
  low_cpu_mem_usage=False,
21
  ignore_mismatched_sizes=True,
 
15
  def init_pipeline():
16
  global pipe
17
  transformer = FluxTransformer2DConditionalModel.from_pretrained(
18
+ CHECKPOINT,
19
+ subfolder="transformer",
20
  torch_dtype=torch.bfloat16,
21
  low_cpu_mem_usage=False,
22
  ignore_mismatched_sizes=True,