atatakun commited on
Commit
6611382
1 Parent(s): cc789d9

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -134,11 +134,10 @@ def lineart_anime(img, res, invert=True):
134
  from annotator.lineart_anime import LineartAnimeDetector
135
  model_lineart_anime = LineartAnimeDetector()
136
  # result = model_lineart_anime(img)
137
- # result = model_lineart(img, coarse)
138
  if (invert):
139
- result = cv2.bitwise_not(model_lineart(img, coarse))
140
  else:
141
- result = model_lineart(img, coarse)
142
  return [result]
143
 
144
 
 
134
  from annotator.lineart_anime import LineartAnimeDetector
135
  model_lineart_anime = LineartAnimeDetector()
136
  # result = model_lineart_anime(img)
 
137
  if (invert):
138
+ result = cv2.bitwise_not(model_lineart_anime(img))
139
  else:
140
+ result = model_lineart_anime(img)
141
  return [result]
142
 
143