-
Beta Was this translation helpful? Give feedback.
Answered by
bmaxdk
Dec 2, 2024
Replies: 1 comment 3 replies
-
Can you try to specify your checkpoint in your saved path like this? # Try to specify your checkpt
model_id = "./uieb_raw_resolution512/checkpoint-10000/" # or 15000
pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to("cuda")
generator = torch.Generator("cuda").manual_seed(0)
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should be right approach. You load the unet model from your specific checkpoint directory and then assign the fine-tuned unet to the pipeline, replacing the original one. Due to this, you are loading the fine-tuned model for inference