Views
No views yet
a photo of a canola plant in the early blooming stage. It is about 63 days old. It has a long stem with narrow leaves bunched together at the bottom of the plant, and two yellow flowers and a few yellow buds at the top. to trigger the image generation.1from diffusers import AutoPipelineForText2Image
2import torch
3pipeline = AutoPipelineForText2Image.from_pretrained(stabilityai/stable-diffusion-3-medium-diffusers, torch_dtype=torch.float16).to('cuda')
4pipeline.load_lora_weights('rdeinla/test-can-6-1', weight_name='pytorch_lora_weights.safetensors')
5image = pipeline('A photo of a canola plant in the early blooming stage. The stem of the plant is long, with narrow leaves with ruffled edges concentrated at the end of the plant and small, thin leaves that spiral to the up the stem. At the top of the plant are a few yellow flowers and a few mature yellow buds. It is about 63 days old. It is growing in dark, nutrient-rich soil. It is contained within a smooth, bright blue cylindrical cup on a bright blue background').images[0]diffusers_lora_weights.safetensors here 💾.
models/Lora folder.<lora:your_new_name:1> to your prompt. On ComfyUI just load it as a regular LoRA.# TODO: add an example code snippet for running this diffusion pipeline