linoyts HF Staff commited on
Commit
940f6d9
·
verified ·
1 Parent(s): ac0b9d5

End of training

Browse files
README.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: HiDream-ai/HiDream-I1-Full
3
+ library_name: diffusers
4
+ license: mit
5
+ instance_prompt: a photo of sks dog
6
+ widget: []
7
+ tags:
8
+ - text-to-image
9
+ - diffusers-training
10
+ - diffusers
11
+ - lora
12
+ - hidream
13
+ - hidream-diffusers
14
+ - template:sd-lora
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the training script had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+
21
+ # HiDream Image DreamBooth LoRA - linoyts/dog-hidream-lora
22
+
23
+ <Gallery />
24
+
25
+ ## Model description
26
+
27
+ These are linoyts/dog-hidream-lora DreamBooth LoRA weights for HiDream-ai/HiDream-I1-Full.
28
+
29
+ The weights were trained using [DreamBooth](https://dreambooth.github.io/) with the [HiDream Image diffusers trainer](https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/README_hidream.md).
30
+
31
+ ## Trigger words
32
+
33
+ You should use `a photo of sks dog` to trigger the image generation.
34
+
35
+ ## Download model
36
+
37
+ [Download the *.safetensors LoRA](linoyts/dog-hidream-lora/tree/main) in the Files & versions tab.
38
+
39
+ ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
40
+
41
+ ```py
42
+ >>> import torch
43
+ >>> from transformers import PreTrainedTokenizerFast, LlamaForCausalLM
44
+ >>> from diffusers import UniPCMultistepScheduler, HiDreamImagePipeline
45
+
46
+ >>> scheduler = UniPCMultistepScheduler(
47
+ ... flow_shift=3.0, prediction_type="flow_prediction", use_flow_sigmas=True
48
+ ... )
49
+
50
+ >>> tokenizer_4 = PreTrainedTokenizerFast.from_pretrained("meta-llama/Meta-Llama-3.1-8B-Instruct")
51
+ >>> text_encoder_4 = LlamaForCausalLM.from_pretrained(
52
+ ... "meta-llama/Meta-Llama-3.1-8B-Instruct",
53
+ ... output_hidden_states=True,
54
+ ... output_attentions=True,
55
+ ... torch_dtype=torch.bfloat16,
56
+ ... )
57
+
58
+ >>> pipe = HiDreamImagePipeline.from_pretrained(
59
+ ... "HiDream-ai/HiDream-I1-Full",
60
+ ... scheduler=scheduler,
61
+ ... tokenizer_4=tokenizer_4,
62
+ ... text_encoder_4=text_encoder_4,
63
+ ... torch_dtype=torch.bfloat16,
64
+ ... )
65
+ >>> pipe.enable_model_cpu_offload()
66
+ >>> pipe.load_lora_weights(f"linoyts/dog-hidream-lora")
67
+ >>> image = pipe(f"a photo of sks dog").images[0]
68
+
69
+
70
+ ```
71
+
72
+ For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
73
+
74
+
75
+ ## Intended uses & limitations
76
+
77
+ #### How to use
78
+
79
+ ```python
80
+ # TODO: add an example code snippet for running this diffusion pipeline
81
+ ```
82
+
83
+ #### Limitations and bias
84
+
85
+ [TODO: provide examples of latent issues and potential remediations]
86
+
87
+ ## Training details
88
+
89
+ [TODO: describe the data used to train the model]
checkpoint-1000/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4394020e5c09b69126c68b1298bb6e4aca60a0e7792f18393b8401cb7bdc25ad
3
+ size 24298452
checkpoint-1000/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60e90fd12a36f1c8ee02b1e0d8d8745d3b8f71dfb8c9d5bd9ab79a14ddd36cf3
3
+ size 23632640
checkpoint-1000/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b040eede46abf2f8afb07b455dc50f74caeef5240735df1560892af25936740b
3
+ size 14344
checkpoint-1000/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d616614e1e01b98e9884f977ff35eabdf257036598f3dd80b10d601a3bca7808
3
+ size 1000
checkpoint-500/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d83ab79072cc89b43278a8e87c26f67e04751f0da945d1a33dda69d97282f52e
3
+ size 24298452
checkpoint-500/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe4c1423cd5afc8fd63e337ecbc4c11dc4fea068034dcf10b03db449cfba292d
3
+ size 23632640
checkpoint-500/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39919f88bcc39dde4a7229834f17f2b1cf27009f9ebc090545bfa647512a0f83
3
+ size 14344
checkpoint-500/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74aa0458b623a43bad98275478187d2e2477340d8bef60907d8579213082b24d
3
+ size 1000
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60e90fd12a36f1c8ee02b1e0d8d8745d3b8f71dfb8c9d5bd9ab79a14ddd36cf3
3
+ size 23632640