Skip to content

Commit

Permalink
create gifs
Browse files Browse the repository at this point in the history
  • Loading branch information
muelea committed Jun 15, 2023
1 parent 496642f commit f567170
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,27 @@ <h4>Generated 3D interacting humans</h4>
</div>
</div>

<div class="row mb-3 pt-2">
<div class="col-md-10 mx-auto">
<h4>Optimization with BUDDI as prior</h4>
<p class="text-justify">
We sample meshes in close social interactions from BUDDI.
</p>
<div id="results-carousel" class="carousel">

<div class="item">
<img playsinline loop muted
class="lazyload"
preload="none"
data-autoplay=""
data-poster="media/samples.gif"
src="media/samples.gif"
></img>
</div>
</div>
</div>
</div>

<div class="row mb-3 pt-2">
<div class="col-md-10 mx-auto">
<h4>Optimization with BUDDI as prior</h4>
Expand Down
File renamed without changes
4 changes: 2 additions & 2 deletions scripts/gifs_to_mp4.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from PIL import Image, ImageSequence

# Specify the folder path, number of rows, and number of columns
folder_path = "media/projectpage/sample"
folder_path = "../projectpage/sample"
rows = 4
columns = 5

Expand Down Expand Up @@ -36,7 +36,7 @@ def create_gif_array(folder_path, rows, columns):
array = np.transpose(array, (2,0,1,3))

# Save the array gif
imageio.mimwrite(f"{folder_path}/samples.gif", array, fps=8)
imageio.mimwrite(f"media/samples.gif", array, fps=8)

# Call the function to create the gif array and save it as an mp4 file
create_gif_array(folder_path, rows, columns)

0 comments on commit f567170

Please sign in to comment.