Downloads · 30 days
17
13% of all-time downloads
KristjanRRR/HiDream-I1-Full-ink-drawing-lora
HiDream-I1-Full-ink-drawing-lora is a text-to-image model from KristjanRRR. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as mit.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
17
13% of all-time downloads
All-time downloads
130
Public
Repo size
353 MB
Likes
0
Public
Click a slice to open those files.
.safetensors189 MB · 54%
From the Hugging Face model README
These are KristjanRRR/HiDream-I1-Full-ink-drawing-lora DreamBooth LoRA weights for HiDream-ai/HiDream-I1-Full.
The weights were trained using DreamBooth with the HiDream Image diffusers trainer.
You should use hand-drawn sketch style--caption_column=prompt to trigger the image generation.
Download the *.safetensors LoRA in the Files & versions tab.
>>> import torch
>>> from transformers import PreTrainedTokenizerFast, LlamaForCausalLM
>>> from diffusers import HiDreamImagePipeline
>>> tokenizer_4 = PreTrainedTokenizerFast.from_pretrained("meta-llama/Meta-Llama-3.1-8B-Instruct")
>>> text_encoder_4 = LlamaForCausalLM.from_pretrained(
... "meta-llama/Meta-Llama-3.1-8B-Instruct",
... output_hidden_states=True,
... output_attentions=True,
... torch_dtype=torch.bfloat16,
... )
>>> pipe = HiDreamImagePipeline.from_pretrained(
... "HiDream-ai/HiDream-I1-Full",
... tokenizer_4=tokenizer_4,
... text_encoder_4=text_encoder_4,
... torch_dtype=torch.bfloat16,
... )
>>> pipe.enable_model_cpu_offload()
>>> pipe.load_lora_weights(f"KristjanRRR/HiDream-I1-Full-ink-drawing-lora")
>>> image = pipe(f"hand-drawn sketch style--caption_column=prompt").images[0]
For more details, including weighting, merging and fusing LoRAs, check the documentation on loading LoRAs in diffusers
# TODO: add an example code snippet for running this diffusion pipeline
[TODO: provide examples of latent issues and potential remediations]
[TODO: describe the data used to train the model]