Loading Intermediate Checkpoints for Inference #82
-
I'm attempting to perform inference using an intermediate checkpoint, but I believe the code in transformer = Transformer2DModel.from_pretrained("/workspace/PixArt-alpha/output/diffusers_trained/transformer", torch_dtype=torch.float16)
pipe = PixArtAlphaPipeline.from_pretrained("PixArt-alpha/PixArt-XL-2-512x512", torch_dtype=torch.float16, transformer=transformer)
pipe = pipe.to("cuda") At this stage, checkpoints are being saved as
Could anyone provide suggestions on how to correctly load an intermediate checkpoint for inference? |
Beta Was this translation helpful? Give feedback.
Answered by
mnslarcher
Jan 27, 2024
Replies: 1 comment
-
Apologies, I forgot that first one have to use this: convert-checkpoint-to-diffusers.ipynb I'll try again! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mnslarcher
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apologies, I forgot that first one have to use this:
convert-checkpoint-to-diffusers.ipynb
I'll try again!