Views
No views yet
VLU to trigger the image generation. The trigger phrase `VLU Logo with 'Van Lang University' text printed on [material]..jpg)
.jpg)
.jpg)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
1from diffusers import DiffusionPipeline
2
3pipeline = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev")
4pipeline.load_lora_weights('dtthanh/vlu_logo', weight_name='lora.safetensors')
5pipeline.to("cuda")
6
7prompt = "a photo of a female student with red polo on that there is VLU Logo with 'Van Lang University' text printed. backgound is a class."
8
9out = pipeline(
10 prompt=prompt,
11 guidance_scale=3.5,
12 num_inference_steps=20,
13 cross_attention_kwargs={"scale": 0.7}
14).images[0]
15
16out.save("vlulogo.png")