Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
avdravid authored Jun 13, 2024
1 parent adfbd43 commit 2456338
Showing 1 changed file with 6 additions and 48 deletions.
54 changes: 6 additions & 48 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@ <h2 class="title is-3">Creating <em>weights2weights</em> Space</h2>
text-align: center;
}
</style>

<div class="columns is-centered has-text-centered">
<h2 class="title is-3">Identity Editing</h2>
</div >
<div class="content has-text-justified" >
<p style="font-size: 18px;"> Given an identity parameterized by weights, we can manipulate attributes by traversing semantic directions in the <em>w2w</em> weight subspace. The edited weights result in a new model, where the subject has different attributes while still maintaining as much of the prior identity. These edits are <b>not</b> image-specific, and persist in appearance across different generation seeds and prompts. Additionally, as we operate on an identity weight manifold, minimal changes are made to other concepts, such as scene layout or other people. Try out the sliders below to demonstrate edits in <em>w2w</em> space. </p>
<p style="font-size: 18px;"> Given an identity parameterized by weights, we can manipulate attributes by traversing semantic directions in the <em>w2w</em> weight subspace. The edited weights result in a new model, where the subject has different attributes while still maintaining as much of the prior identity. These edits are <b>not</b> image-specific, and persist in appearance across different generation seeds and prompts. Additionally, as we operate on an identity weight manifold, minimal changes are made to other concepts, such as scene layout or other people. Try out the sliders below to demonstrate edits in <em>w2w</em> space. </p>
</div>

<h3 class="title is-4">Slide the bars to edit the identity.</h2>
<div class="content" style="border: 2px solid gray; border-radius: 15px; box-shadow: 0px 0px 10px #999; padding: 20px;">
<div id="imageContainer">
Expand All @@ -239,7 +239,7 @@ <h3 class="title is-4">Slide the bars to edit the identity.</h2>


<label for="sliderA">Curly Hair:</label>
<input type="range" id="sliderA" class="slider" name="sliderA" min="0" max="4" value="0" oninput="updateImage()">
<input type="range" id="sliderA" class="slider is-large is-info" name="sliderA" min="0" max="4" value="0" oninput="updateImage()">

<!-- <input type="range" id="sliderA" name="sliderA" min="0" max="4" value="0"> -->
<span id="valueA">0</span>
Expand All @@ -248,15 +248,15 @@ <h3 class="title is-4">Slide the bars to edit the identity.</h2>

<label for="sliderB">Pointy Nose:</label>
<!-- <input type="range" id="sliderB" name="sliderB" min="0" max="4" value="0"> -->
<input type="range" id="sliderB" class="slider" name="sliderB" min="0" max="4" value="0" oninput="updateImage()">
<input type="range" id="sliderB" class="slider is-large is-info" name="sliderB" min="0" max="4" value="0" oninput="updateImage()">

<span id="valueB">0</span>

<br>

<label for="sliderC">Narrow Eyes:</label>
<!-- <input type="range" id="sliderC" name="sliderC" min="0" max="4" value="0"> -->
<input type="range" id="sliderC" class="slider" name="sliderC" min="0" max="4" value="0" oninput="updateImage()">
<input type="range" id="sliderC" class="slider is-large is-info" name="sliderC" min="0" max="4" value="0" oninput="updateImage()">

<span id="valueC">0</span>

Expand Down Expand Up @@ -292,48 +292,6 @@ <h3 class="title is-4">Slide the bars to edit the identity.</h2>
</div>
</section>

<section class="section">
<div class="container is-max-desktop">
<style>
img {
width:100%;
}
.clickable-area {
cursor: pointer;
}
</style>
<div class="columns is-centered has-text-centered">
<h2 class="title is-3">Sampling</h2>
</div>
<div class="content has-text-justified" >
<p style="font-size: 18px;">Modeling the underlying manifold of identity-encoding weights allows sampling a new model that lies on it. This results in a new model that generates a novel identity that is consistent across generations. We provide examples of sampling models from <em>w2w</em> space below, demonstrating a variety of facial attributes, hairstyles, and contexts. </p>
</div>

<h3 class="title is-4">Click to sample an identity-encoding model.</h2>
<!-- <h3 class="title is-3">Key idea</h3> -->
<img src="./images/sampling/sample_animation.gif" alt="sampling" usemap="#workmap" id="mainImage" style="border: 2px solid gray; border-radius: 15px; box-shadow: 0px 0px 10px #999; padding: 0px;" >

<map name="workmap" id="workmap">
<area id="rect1" shape="rect" coords="1866,754,2225,871" alt="rect1" title="click" class="clickable-area" onclick="changeImage('./images/sampling/sampling_Part19.jpg')">
<area id="rect2" shape="rect" coords="2282,731,2643,847" alt="rect2" title="click" class="clickable-area" onclick="changeImage('./images/sampling/sampling_Part20.jpg')">
<area id="rect3" shape="rect" coords="1523,571,1884,687" alt="rect2" title="click" class="clickable-area" onclick="changeImage('./images/sampling/sampling_Part21.jpg')">
<area id="rect4" shape="rect" coords="1287,790,1648,905" alt="rect2" title="click" class="clickable-area" onclick="changeImage('./images/sampling/sampling_Part22.jpg')">
<area id="rect4" shape="rect" coords="888,687,1250,802" alt="rect2" title="click" class="clickable-area" onclick="changeImage('./images/sampling/sampling_Part23.jpg')">
</map>

<script>

function changeImage(im_name) {
document.getElementById('mainImage').src = im_name;

}
</script>

</div>
</div>
</div>
</section>




Expand Down

0 comments on commit 2456338

Please sign in to comment.