aanchal77 commited on
Commit
b5fc36f
·
verified ·
1 Parent(s): adbfbda

Upload folder using huggingface_hub

Browse files
artists/Vincent_van_Gogh/README.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ license: mit
4
+ base_model: runwayml/stable-diffusion-v1-5
5
+ tags:
6
+ - stable-diffusion
7
+ - text-to-image
8
+ - diffusers
9
+ - lora
10
+ - artist
11
+ - art
12
+ ---
13
+
14
+ # LoRA for Artist: Vincent van Gogh
15
+
16
+ A LoRA fine-tuned on the work of **Vincent van Gogh**. Use the trigger phrase `by vincent van gogh` in your prompts to evoke their iconic style.
17
+
18
+ This LoRA was trained on the [WikiArt dataset](https://www.kaggle.com/datasets/steubk/wikiart) for 1000 steps.
19
+
20
+ ## How to Use
21
+
22
+ This LoRA is designed to be used with the `diffusers` library.
23
+
24
+ ```python
25
+ import torch
26
+ from diffusers import StableDiffusionPipeline
27
+ from peft import PeftModel
28
+
29
+ # --- 1. Load the base model ---
30
+ base_model_id = "runwayml/stable-diffusion-v1-5"
31
+ pipe = StableDiffusionPipeline.from_pretrained(base_model_id, torch_dtype=torch.float16).to("cuda")
32
+
33
+ # --- 2. Load the LoRA adapter ---
34
+ repo_id = "aanchal77/Final-One"
35
+ lora_path_in_repo = "artists/Vincent_van_Gogh"
36
+ pipe.unet = PeftModel.from_pretrained(pipe.unet, repo_id, subfolder=lora_path_in_repo)
37
+
38
+ # --- 3. Generate an image ---
39
+ prompt = f"A futuristic cityscape by vincent van gogh"
40
+ image = pipe(prompt, num_inference_steps=20, guidance_scale=7.5).images[0]
41
+ image.save("generated_image.png")
artists/Vincent_van_Gogh/adapter_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": {
4
+ "base_model_class": "UNet2DConditionModel",
5
+ "parent_library": "diffusers.models.unets.unet_2d_condition"
6
+ },
7
+ "base_model_name_or_path": "runwayml/stable-diffusion-v1-5",
8
+ "bias": "none",
9
+ "corda_config": null,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 32,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.1,
22
+ "megatron_config": null,
23
+ "megatron_core": "megatron.core",
24
+ "modules_to_save": null,
25
+ "peft_type": "LORA",
26
+ "qalora_group_size": 16,
27
+ "r": 8,
28
+ "rank_pattern": {},
29
+ "revision": null,
30
+ "target_modules": [
31
+ "to_k",
32
+ "to_v",
33
+ "to_out.0",
34
+ "to_q"
35
+ ],
36
+ "target_parameters": null,
37
+ "task_type": null,
38
+ "trainable_token_indices": null,
39
+ "use_dora": false,
40
+ "use_qalora": false,
41
+ "use_rslora": false
42
+ }
artists/Vincent_van_Gogh/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dddf1daf8c6edc4a9adff3b66c07c6a1d11a8d0aa89265222e687159fb2f0292
3
+ size 6417552