lixiang46 commited on
Commit
3936987
1 Parent(s): 5eb8090
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +2 -2
  3. assets/title.md +2 -2
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Kolors-Controlnet
3
  emoji: 🏞️
4
  colorFrom: purple
5
  colorTo: green
 
1
  ---
2
+ title: Kolors Controlnet
3
  emoji: 🏞️
4
  colorFrom: purple
5
  colorTo: green
app.py CHANGED
@@ -88,8 +88,8 @@ model_dwpose = DWposeDetector()
88
  def process_dwpose_condition(image, res=1024):
89
  h,w,_ = image.shape
90
  img = resize_image(HWC3(image), res)
91
- out_res, out_img = model_dwpose(img)
92
- result = HWC3( out_img )
93
  result = cv2.resize( result, (w,h) )
94
  return Image.fromarray(result)
95
 
 
88
  def process_dwpose_condition(image, res=1024):
89
  h,w,_ = image.shape
90
  img = resize_image(HWC3(image), res)
91
+ out_res, out_img = model_dwpose(image)
92
+ result = HWC3(out_img)
93
  result = cv2.resize( result, (w,h) )
94
  return Image.fromarray(result)
95
 
assets/title.md CHANGED
@@ -1,7 +1,7 @@
1
  <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
2
  <div>
3
- <h1>Kolors-Controlnet</h1>
4
- <span>Two ControlNet based on Kolors-Basemodel: Canny and Depth</span>
5
  <br>
6
  <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
7
  <a href="https://github.com/Kwai-Kolors/Kolors/tree/master/controlnet"><img src="https://img.shields.io/static/v1?label=Kolors Code&message=Github&color=blue&logo=github-pages"></a> &ensp;
 
1
  <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
2
  <div>
3
+ <h1>Kolors Controlnet</h1>
4
+ <span>Three ControlNet based on Kolors-Basemodel: Canny, Depth and Pose</span>
5
  <br>
6
  <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
7
  <a href="https://github.com/Kwai-Kolors/Kolors/tree/master/controlnet"><img src="https://img.shields.io/static/v1?label=Kolors Code&message=Github&color=blue&logo=github-pages"></a> &ensp;