Views
No views yet
LoRA technology, making it easier for users to customize and experiment.ckpt or LoRA files from the following links:diffusers1import torch
2from diffusers import StableDiffusion3Pipeline
3
4pipe = StableDiffusion3Pipeline.from_pretrained("tensorart/stable-diffusion-3.5-medium-turbo", torch_dtype=torch.float16,)
5
6pipe = pipe.to("cuda")
7
8
9image = pipe(
10 "A beautiful bald girl with silver and white futuristic metal face jewelry, her full body made of intricately carved liquid glass in the style of Tadashi, the complexity master of cyberpunk, in the style of James Jean and Peter Mohrbacher. This concept design is trending on Artstation, with sharp focus, studio-quality photography, and highly detailed, intricate details.",
11 num_inference_steps=8,
12 guidance_scale=1.5,
13 height=1024,
14 width=768
15).images[0]
16
17image.save("./test4-2.webp")1import torch
2from diffusers import StableDiffusion3Pipeline
3import numpy as np
4from safetensors.torch import load_file
5from huggingface_hub import hf_hub_download
6
7repo = "tensorart/stable-diffusion-3.5-medium-turbo"
8ckpt = "lora_sd3.5m_turbo_8steps.safetensors"
9
10pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3.5-medium", torch_dtype=torch.float16,)
11
12pipe = pipe.to("cuda")
13
14pipe.load_lora_weights(hf_hub_download(repo, ckpt))
15pipe.fuse_lora()
16
17
18pipe = pipe.to("cuda")
19
20image = pipe(
21 "A beautiful bald girl with silver and white futuristic metal face jewelry, her full body made of intricately carved liquid glass in the style of Tadashi, the complexity master of cyberpunk, in the style of James Jean and Peter Mohrbacher. This concept design is trending on Artstation, with sharp focus, studio-quality photography, and highly detailed, intricate details.",
22 num_inference_steps=8,
23 guidance_scale=1.5,
24 height=1024,
25 width=768
26).images[0]
27image.save("./test1.webp")