Upload app.py
Browse files
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(
|
140 |
else:
|
141 |
-
result =
|
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 |
|