Update app.py
Browse files
app.py
CHANGED
|
@@ -143,9 +143,13 @@ def logscale(linear):
|
|
| 143 |
def linscale(linear):
|
| 144 |
return int(math.log2(linear))
|
| 145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
def loadf(f):
|
| 147 |
if f != None:
|
| 148 |
-
f.sort()
|
| 149 |
return f, f
|
| 150 |
|
| 151 |
|
|
@@ -161,12 +165,12 @@ title="""
|
|
| 161 |
"
|
| 162 |
>
|
| 163 |
<h1 style="font-weight: 600; margin-bottom: 7px;">
|
| 164 |
-
Video interpolation with FILM
|
| 165 |
</h1>
|
| 166 |
|
| 167 |
</div>
|
| 168 |
-
<p> This space uses FILM to generate interpolation frames in a
|
| 169 |
-
Generation is limited to 300 frames, from the beginning of your
|
| 170 |
<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>
|
| 171 |
</p>
|
| 172 |
</div>
|
|
|
|
| 143 |
def linscale(linear):
|
| 144 |
return int(math.log2(linear))
|
| 145 |
|
| 146 |
+
def sortFiles(e):
|
| 147 |
+
e = e.split('/')
|
| 148 |
+
return e[len(e)-1]
|
| 149 |
+
|
| 150 |
def loadf(f):
|
| 151 |
if f != None:
|
| 152 |
+
f.sort(key=sortFiles)
|
| 153 |
return f, f
|
| 154 |
|
| 155 |
|
|
|
|
| 165 |
"
|
| 166 |
>
|
| 167 |
<h1 style="font-weight: 600; margin-bottom: 7px;">
|
| 168 |
+
Video interpolation from images with FILM
|
| 169 |
</h1>
|
| 170 |
|
| 171 |
</div>
|
| 172 |
+
<p> This space uses FILM to generate interpolation frames in a set of image files you need to turn into a video.<br />
|
| 173 |
+
Generation is limited to 300 uploaded frames, from the beginning of your input.<br />
|
| 174 |
<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>
|
| 175 |
</p>
|
| 176 |
</div>
|