yetshuan commited on
Commit
fec11a4
·
verified ·
1 Parent(s): 5045b0e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +8 -1
README.md CHANGED
@@ -1,7 +1,13 @@
 
 
 
 
 
 
 
1
  from diffusers import HunyuanDiT2DControlNetModel, HunyuanDiTControlNetPipeline
2
  import torch
3
 
4
-
5
  controlnet = HunyuanDiT2DControlNetModel.from_pretrained("Tencent-Hunyuan/HunyuanDiT-v1.2-ControlNet-Diffusers-Distilled-Depth", torch_dtype=torch.float16)
6
 
7
  pipe = HunyuanDiTControlNetPipeline.from_pretrained("Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled", controlnet=controlnet, torch_dtype=torch.float16)
@@ -24,3 +30,4 @@ image = pipe(
24
  control_image=cond_image,
25
  num_inference_steps=50,
26
  ).images[0]
 
 
1
+ ---
2
+ license: other
3
+ license_name: tencent-hunyuan-community
4
+ license_link: https://huggingface.co/Tencent-Hunyuan/HunyuanDiT/blob/main/LICENSE.txt
5
+ ---
6
+
7
+ ```py
8
  from diffusers import HunyuanDiT2DControlNetModel, HunyuanDiTControlNetPipeline
9
  import torch
10
 
 
11
  controlnet = HunyuanDiT2DControlNetModel.from_pretrained("Tencent-Hunyuan/HunyuanDiT-v1.2-ControlNet-Diffusers-Distilled-Depth", torch_dtype=torch.float16)
12
 
13
  pipe = HunyuanDiTControlNetPipeline.from_pretrained("Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled", controlnet=controlnet, torch_dtype=torch.float16)
 
30
  control_image=cond_image,
31
  num_inference_steps=50,
32
  ).images[0]
33
+ ```