TalHach61 commited on
Commit
4efc9d6
1 Parent(s): fc85c2e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +98 -5
README.md CHANGED
@@ -1,5 +1,98 @@
1
- ---
2
- license: other
3
- license_name: bria-2.3
4
- license_link: https://bria.ai/bria-huggingface-model-license-agreement/
5
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: bria-2.3
4
+ license_link: https://bria.ai/bria-huggingface-model-license-agreement/
5
+ inference: false
6
+ tags:
7
+ - text-to-image
8
+ - controlnet model
9
+ - legal liability
10
+ - commercial use
11
+ extra_gated_prompt: >-
12
+ This model weights by BRIA AI can be obtained after a commercial license is
13
+ agreed upon. Fill in the form below and we reach out to you.
14
+ extra_gated_fields:
15
+ Name: text
16
+ Company/Org name: text
17
+ Org Type (Early/Growth Startup, Enterprise, Academy): text
18
+ Role: text
19
+ Country: text
20
+ Email: text
21
+ By submitting this form, I agree to BRIA’s Privacy policy and Terms & conditions, see links below: checkbox
22
+ ---
23
+
24
+ # BRIA 2.3 ControlNet Pose Model Card
25
+
26
+
27
+ BRIA 2.3 ControlNet-Pose, trained on the foundation of [BRIA 2.3 Text-to-Image](https://huggingface.co/briaai/BRIA-2.3), enables the generation of high-quality images guided by a textual prompt and the human pose estimation of the input image. This allows for the creation of different variations of an image, all sharing the same human pose.
28
+
29
+
30
+ [BRIA 2.3](https://huggingface.co/briaai/BRIA-2.3) was trained from scratch exclusively on licensed data from our esteemed data partners. Therefore, they are safe for commercial use and provide full legal liability coverage for copyright and privacy infringement, as well as harmful content mitigation. That is, our dataset does not contain copyrighted materials, such as fictional characters, logos, trademarks, public figures, harmful content, or privacy-infringing content.
31
+
32
+ Join our [Discord community](https://discord.gg/Nxe9YW9zHS) for more information, tutorials, tools, and to connect with other users!
33
+
34
+ ![controlnet_recoloring_showoff.png](https://huggingface.co/briaai/BRIA-2.2-ControlNet-Recoloring/resolve/main/controlnet_recoloring_showoff.png)
35
+
36
+
37
+ ### Model Description
38
+
39
+ - **Developed by:** BRIA AI
40
+ - **Model type:** [ControlNet](https://huggingface.co/docs/diffusers/using-diffusers/controlnet) for Latent diffusion
41
+ - **License:** [bria-2.3](https://bria.ai/bria-huggingface-model-license-agreement/)
42
+
43
+ - **Model Description:** ControlNet Pose for BRIA 2.3 Text-to-Image model. The model generates images guided by text and the grayscale image of the conditioned image.
44
+ - **Resources for more information:** [BRIA AI](https://bria.ai/)
45
+
46
+
47
+ ### Get Access
48
+ BRIA 2.3 ControlNet-Pose requires access to BRIA 2.3 Text-to-Image. For more information, [click here](https://huggingface.co/briaai/BRIA-2.3).
49
+
50
+
51
+
52
+
53
+
54
+
55
+ ### Code example using Diffusers
56
+ 1. Install https://github.com/patrickvonplaten/controlnet_aux
57
+
58
+ ```sh
59
+ $ pip install controlnet_aux
60
+ ```
61
+
62
+ 2. Let's install `diffusers` and related packages:
63
+
64
+ ```
65
+ $ pip install diffusers transformers accelerate
66
+ ```
67
+
68
+
69
+ ```py
70
+ from diffusers import ControlNetModel, StableDiffusionXLControlNetPipeline
71
+ from controlnet_aux import OpenposeDetector
72
+ import torch
73
+ from diffusers.utils import load_image
74
+
75
+ controlnet = ControlNetModel.from_pretrained(
76
+ "briaai/BRIA-2.3-ControlNet-Pose",
77
+ torch_dtype=torch.float16
78
+ )
79
+
80
+ pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
81
+ "briaai/BRIA-2.3",
82
+ controlnet=controlnet,
83
+ torch_dtype=torch.float16,
84
+ )
85
+ pipe.to("cuda")
86
+
87
+ prompt = "A portrait of a Beautiful and playful ethereal singer, golden designs, highly detailed, blurry background"
88
+ negative_prompt = "Logo,Watermark,Text,Ugly,Morbid,Extra fingers,Poorly drawn hands,Mutation,Blurry,Extra limbs,Gross proportions,Missing arms,Mutated hands,Long neck,Duplicate,Mutilated,Mutilated hands,Poorly drawn face,Deformed,Bad anatomy,Cloned face,Malformed limbs,Missing legs,Too many fingers"
89
+
90
+ # Calculate Pose image
91
+ openpose = OpenposeDetector.from_pretrained('lllyasviel/ControlNet')
92
+
93
+ image = load_image("https://huggingface.co/lllyasviel/sd-controlnet-openpose/resolve/main/images/pose.png")
94
+
95
+ pose_image = openpose(image)
96
+
97
+ image = pipe(prompt=prompt, negative_prompt=negative_prompt, image=pose_image, controlnet_conditioning_scale=1.0, height=1024, width=1024).images[0]
98
+ ```