prithivMLmods commited on
Commit
c197fc6
·
verified ·
1 Parent(s): 2c47384

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -0
README.md CHANGED
@@ -72,7 +72,21 @@ Please make sure to follow the licensing terms of each source when using these i
72
 
73
  🚀 **Scroll Down to the end for Sample Generations ⬇️.**
74
 
 
 
 
 
75
 
 
 
 
 
 
 
 
 
 
 
76
  ## Trigger prompts
77
 
78
  Anime ((masterpiece,best quality, detailed)), outdoor,wind_lift, souryuu asuka langley, interface headset, red bodysuit, (realistic:1.3)
 
72
 
73
  🚀 **Scroll Down to the end for Sample Generations ⬇️.**
74
 
75
+ ## Setting Up
76
+ ```
77
+ import torch
78
+ from pipelines import DiffusionPipeline
79
 
80
+ base_model = "black-forest-labs/FLUX.1-dev"
81
+ pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
82
+
83
+ lora_repo = "prithivMLmods/Canopus-Anime-Art-Flux-LoRA"
84
+ trigger_word = "Anime" # Leave trigger_word blank if not used.
85
+ pipe.load_lora_weights(lora_repo)
86
+
87
+ device = torch.device("cuda")
88
+ pipe.to(device)
89
+ ```
90
  ## Trigger prompts
91
 
92
  Anime ((masterpiece,best quality, detailed)), outdoor,wind_lift, souryuu asuka langley, interface headset, red bodysuit, (realistic:1.3)