Diffusers
TalHach61 commited on
Commit
b8020bc
·
verified ·
1 Parent(s): c81a6d4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -13
README.md CHANGED
@@ -5,20 +5,20 @@ license_link: https://bria.ai/legal-lobby
5
  ---
6
 
7
 
8
- # BRIA 3.0 ControlNet Union Model Card
9
 
10
- BRIA-3.0 ControlNet-Union, trained on the foundation of [BRIA-4B-Adapt Text-to-Image](https://huggingface.co/briaai/BRIA-4B-Adapt), supports 6 control modes, including depth (0), canny (1), colorgrid (2), recolor (3), tile (4), pose (5). This model can be jointly used with other ControlNets.
11
 
12
  This model combines technological innovation with ethical responsibility and legal security, setting a new standard in the AI industry. Bria AI licenses the foundation model with full legal liability coverage. Our dataset does not contain copyrighted materials, such as fictional characters, logos, trademarks, public figures, harmful content, or privacy-infringing content.
13
 
14
- [CLICK HERE FOR A DEMO](https://huggingface.co/spaces/briaai/BRIA-3.0-ControlNet-Union)
15
 
16
  For more information, please visit our [website](https://bria.ai/).
17
 
18
  Join our [Discord community](https://discord.gg/Nxe9YW9zHS) for more information, tutorials, tools, and to connect with other users!
19
 
20
  ### Get Access
21
- Interested in BRIA-3.0 ControlNet-Union? Purchase is required to license and access BRIA-3.0 ControlNet-Union, ensuring royalty management with our data partners and full liability coverage for commercial use.
22
 
23
  Are you a startup or a student? We encourage you to apply for our [Startup Program](https://pages.bria.ai/the-visual-generative-ai-platform-for-builders-startups-plan?_gl=1*cqrl81*_ga*MTIxMDI2NzI5OC4xNjk5NTQ3MDAz*_ga_WRN60H46X4*MTcwOTM5OTMzNC4yNzguMC4xNzA5Mzk5MzM0LjYwLjAuMA..) to request access. This program are designed to support emerging businesses and academic pursuits with our cutting-edge technology.
24
 
@@ -75,8 +75,8 @@ except:
75
  hf_hub_download(repo_id="briaai/BRIA-4B-Adapt", filename='pipeline_bria.py', local_dir=local_dir)
76
  hf_hub_download(repo_id="briaai/BRIA-4B-Adapt", filename='transformer_bria.py', local_dir=local_dir)
77
  hf_hub_download(repo_id="briaai/BRIA-4B-Adapt", filename='bria_utils.py', local_dir=local_dir)
78
- hf_hub_download(repo_id="briaai/BRIA-3.0-ControlNet-Union", filename='pipeline_bria_controlnet.py', local_dir=local_dir)
79
- hf_hub_download(repo_id="briaai/BRIA-3.0-ControlNet-Union", filename='controlnet_bria.py', local_dir=local_dir)
80
 
81
  import torch
82
  from diffusers.utils import load_image
@@ -85,13 +85,13 @@ from pipeline_bria_controlnet import BriaControlNetPipeline
85
  import PIL.Image as Image
86
 
87
  base_model = 'briaai/BRIA-4B-Adapt'
88
- controlnet_model = 'briaai/BRIA-3.0-ControlNet-Union'
89
 
90
  controlnet = BriaControlNetModel.from_pretrained(controlnet_model, torch_dtype=torch.bfloat16)
91
  pipe = BriaControlNetPipeline.from_pretrained(base_model, controlnet=controlnet, torch_dtype=torch.bfloat16, trust_remote_code=True)
92
  pipe.to("cuda")
93
 
94
- control_image_canny = load_image("https://huggingface.co/briaai/BRIA-3.0-ControlNet-Union/resolve/main/images/canny.jpg")
95
  controlnet_conditioning_scale = 1.0
96
  control_mode = 1
97
 
@@ -127,8 +127,8 @@ except:
127
  hf_hub_download(repo_id="briaai/BRIA-4B-Adapt", filename='pipeline_bria.py', local_dir=local_dir)
128
  hf_hub_download(repo_id="briaai/BRIA-4B-Adapt", filename='transformer_bria.py', local_dir=local_dir)
129
  hf_hub_download(repo_id="briaai/BRIA-4B-Adapt", filename='bria_utils.py', local_dir=local_dir)
130
- hf_hub_download(repo_id="briaai/BRIA-3.0-ControlNet-Union", filename='pipeline_bria_controlnet.py', local_dir=local_dir)
131
- hf_hub_download(repo_id="briaai/BRIA-3.0-ControlNet-Union", filename='controlnet_bria.py', local_dir=local_dir)
132
 
133
 
134
  import torch
@@ -138,7 +138,7 @@ from pipeline_bria_controlnet import BriaControlNetPipeline
138
  import PIL.Image as Image
139
 
140
  base_model = 'briaai/BRIA-4B-Adapt'
141
- controlnet_model = 'briaai/BRIA-3.0-ControlNet-Union'
142
 
143
  controlnet = BriaControlNetModel.from_pretrained(controlnet_model, torch_dtype=torch.bfloat16)
144
  controlnet = BriaMultiControlNetModel([controlnet])
@@ -146,8 +146,8 @@ controlnet = BriaMultiControlNetModel([controlnet])
146
  pipe = BriaControlNetPipeline.from_pretrained(base_model, controlnet=controlnet, torch_dtype=torch.bfloat16, trust_remote_code=True)
147
  pipe.to("cuda")
148
 
149
- control_image_colorgrid = load_image("https://huggingface.co/briaai/BRIA-3.0-ControlNet-Union/resolve/main/images/colorgrid.jpg")
150
- control_image_pose = load_image("https://huggingface.co/briaai/BRIA-3.0-ControlNet-Union/resolve/main/images/pose.jpg")
151
 
152
  control_image = [control_image_colorgrid, control_image_pose]
153
  controlnet_conditioning_scale = [0.5, 0.5]
 
5
  ---
6
 
7
 
8
+ # BRIA-4B-Adapt ControlNet Union Model Card
9
 
10
+ BRIA-4B-Adapt ControlNet-Union, trained on the foundation of [BRIA-4B-Adapt Text-to-Image](https://huggingface.co/briaai/BRIA-4B-Adapt), supports 6 control modes, including depth (0), canny (1), colorgrid (2), recolor (3), tile (4), pose (5). This model can be jointly used with other ControlNets.
11
 
12
  This model combines technological innovation with ethical responsibility and legal security, setting a new standard in the AI industry. Bria AI licenses the foundation model with full legal liability coverage. Our dataset does not contain copyrighted materials, such as fictional characters, logos, trademarks, public figures, harmful content, or privacy-infringing content.
13
 
14
+ [CLICK HERE FOR A DEMO](https://huggingface.co/spaces/briaai/BRIA-4B-Adapt-ControlNet-Union)
15
 
16
  For more information, please visit our [website](https://bria.ai/).
17
 
18
  Join our [Discord community](https://discord.gg/Nxe9YW9zHS) for more information, tutorials, tools, and to connect with other users!
19
 
20
  ### Get Access
21
+ Interested in BRIA-4B-Adapt ControlNet-Union? Purchase is required to license and access BRIA-4B-Adapt ControlNet-Union, ensuring royalty management with our data partners and full liability coverage for commercial use.
22
 
23
  Are you a startup or a student? We encourage you to apply for our [Startup Program](https://pages.bria.ai/the-visual-generative-ai-platform-for-builders-startups-plan?_gl=1*cqrl81*_ga*MTIxMDI2NzI5OC4xNjk5NTQ3MDAz*_ga_WRN60H46X4*MTcwOTM5OTMzNC4yNzguMC4xNzA5Mzk5MzM0LjYwLjAuMA..) to request access. This program are designed to support emerging businesses and academic pursuits with our cutting-edge technology.
24
 
 
75
  hf_hub_download(repo_id="briaai/BRIA-4B-Adapt", filename='pipeline_bria.py', local_dir=local_dir)
76
  hf_hub_download(repo_id="briaai/BRIA-4B-Adapt", filename='transformer_bria.py', local_dir=local_dir)
77
  hf_hub_download(repo_id="briaai/BRIA-4B-Adapt", filename='bria_utils.py', local_dir=local_dir)
78
+ hf_hub_download(repo_id="briaai/BRIA-4B-Adapt-ControlNet-Union", filename='pipeline_bria_controlnet.py', local_dir=local_dir)
79
+ hf_hub_download(repo_id="briaai/BRIA-4B-Adapt-ControlNet-Union", filename='controlnet_bria.py', local_dir=local_dir)
80
 
81
  import torch
82
  from diffusers.utils import load_image
 
85
  import PIL.Image as Image
86
 
87
  base_model = 'briaai/BRIA-4B-Adapt'
88
+ controlnet_model = 'briaai/BRIA-4B-Adapt-ControlNet-Union'
89
 
90
  controlnet = BriaControlNetModel.from_pretrained(controlnet_model, torch_dtype=torch.bfloat16)
91
  pipe = BriaControlNetPipeline.from_pretrained(base_model, controlnet=controlnet, torch_dtype=torch.bfloat16, trust_remote_code=True)
92
  pipe.to("cuda")
93
 
94
+ control_image_canny = load_image("https://huggingface.co/briaai/BRIA-4B-Adapt-ControlNet-Union/resolve/main/images/canny.jpg")
95
  controlnet_conditioning_scale = 1.0
96
  control_mode = 1
97
 
 
127
  hf_hub_download(repo_id="briaai/BRIA-4B-Adapt", filename='pipeline_bria.py', local_dir=local_dir)
128
  hf_hub_download(repo_id="briaai/BRIA-4B-Adapt", filename='transformer_bria.py', local_dir=local_dir)
129
  hf_hub_download(repo_id="briaai/BRIA-4B-Adapt", filename='bria_utils.py', local_dir=local_dir)
130
+ hf_hub_download(repo_id="briaai/BRIA-4B-Adapt-ControlNet-Union", filename='pipeline_bria_controlnet.py', local_dir=local_dir)
131
+ hf_hub_download(repo_id="briaai/BRIA-4B-Adapt-ControlNet-Union", filename='controlnet_bria.py', local_dir=local_dir)
132
 
133
 
134
  import torch
 
138
  import PIL.Image as Image
139
 
140
  base_model = 'briaai/BRIA-4B-Adapt'
141
+ controlnet_model = 'briaai/BRIA-4B-Adapt-ControlNet-Union'
142
 
143
  controlnet = BriaControlNetModel.from_pretrained(controlnet_model, torch_dtype=torch.bfloat16)
144
  controlnet = BriaMultiControlNetModel([controlnet])
 
146
  pipe = BriaControlNetPipeline.from_pretrained(base_model, controlnet=controlnet, torch_dtype=torch.bfloat16, trust_remote_code=True)
147
  pipe.to("cuda")
148
 
149
+ control_image_colorgrid = load_image("https://huggingface.co/briaai/BRIA-4B-Adapt-ControlNet-Union/resolve/main/images/colorgrid.jpg")
150
+ control_image_pose = load_image("https://huggingface.co/briaai/BRIA-4B-Adapt-ControlNet-Union/resolve/main/images/pose.jpg")
151
 
152
  control_image = [control_image_colorgrid, control_image_pose]
153
  controlnet_conditioning_scale = [0.5, 0.5]