Update app.py
Browse files
app.py
CHANGED
@@ -150,7 +150,7 @@ def remove_bg(fl, count):
|
|
150 |
fr = cv2.imread(fl).astype(np.uint8)
|
151 |
|
152 |
b = 3
|
153 |
-
element = cv2.getStructuringElement(cv2.
|
154 |
|
155 |
n = int((fr.shape[0]*fr.shape[1]) / (256*256))
|
156 |
fr_bg = cv2.medianBlur(fr, 255)
|
@@ -269,8 +269,8 @@ title="""
|
|
269 |
</h1>
|
270 |
|
271 |
</div>
|
272 |
-
<p> This space uses FILM to generate interpolation frames in a set of image files you need to turn into a video for
|
273 |
-
If .mp4 videos are uploaded instead, selects the sharpest frame of each. Limited to 300 uploaded frames, from the beginning of
|
274 |
<a style="display:inline-block" href="https://huggingface.co/spaces/freealise/video_frame_interpolation?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a>
|
275 |
</p>
|
276 |
</div>
|
|
|
150 |
fr = cv2.imread(fl).astype(np.uint8)
|
151 |
|
152 |
b = 3
|
153 |
+
element = cv2.getStructuringElement(cv2.MORPH_RECT, (2 * b + 1, 2 * b + 1), (b, b))
|
154 |
|
155 |
n = int((fr.shape[0]*fr.shape[1]) / (256*256))
|
156 |
fr_bg = cv2.medianBlur(fr, 255)
|
|
|
269 |
</h1>
|
270 |
|
271 |
</div>
|
272 |
+
<p> This space uses FILM to generate interpolation frames in a set of image files you need to turn into a video for stop motion animation.
|
273 |
+
If .mp4 videos are uploaded instead, selects the sharpest frame of each. Limited to 300 uploaded frames, from the beginning of input.<br />
|
274 |
<a style="display:inline-block" href="https://huggingface.co/spaces/freealise/video_frame_interpolation?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a>
|
275 |
</p>
|
276 |
</div>
|