Skip to content

Commit

Permalink
Merge pull request #23 from RahulSajnani/main
Browse files Browse the repository at this point in the history
Update GeoDiffuser GiFs and Gallery template
  • Loading branch information
drsrinathsridhar authored Jun 14, 2024
2 parents 5595214 + e87bb33 commit 1eafb5b
Show file tree
Hide file tree
Showing 35 changed files with 59 additions and 0 deletions.
9 changes: 9 additions & 0 deletions _includes/gallery.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- This is to create an image gallery -->
<!-- How to use: {include gallery.html img="#,#,#,#", img_width=#%} -->
{% assign gallery_path = include.img | split: "," %}

<div class="row gallery-items-div">
{% for image_path in gallery_path %}
<img class="gallery-content-item-col img-fluid" src="{{ image_path }}" alt="{{ image_path }}" style="width:{{ include.img_width }}"/>
{% endfor %}
</div>
14 changes: 14 additions & 0 deletions assets/css/project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,23 @@ h2 {
height: 49%;
object-fit: contain;
}


}

.gallery-items-div {
width: 100%;
height: auto;
margin: 0 auto;

.gallery-content-item-col {
// width: 49%;
height: auto;
padding-top: 10px;
object-fit: contain;
}
}


.icons {
display: flex;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/projects/geodiffuser/removal/1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/projects/geodiffuser/removal/2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/projects/geodiffuser/removal/3.gif
Binary file added assets/images/projects/geodiffuser/removal/4.gif
Binary file added assets/images/projects/geodiffuser/removal/5.gif
Binary file added assets/images/projects/geodiffuser/removal/6.gif
Binary file added assets/images/projects/geodiffuser/removal/7.gif
Binary file added assets/images/projects/geodiffuser/removal/8.gif
Binary file added assets/images/projects/geodiffuser/removal/9.gif
36 changes: 36 additions & 0 deletions research/geodiffuser.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,49 @@ redirect_from:

{% include icons.html paper="https://arxiv.org/pdf/2404.14403.pdf" %}

## Real Image Editing with GeoDiffuser
#### 2D and 3D Edits

{% include gallery.html
img="/assets/images/projects/geodiffuser/movement/1.gif,
/assets/images/projects/geodiffuser/movement/10.gif,
/assets/images/projects/geodiffuser/movement/4.gif,
/assets/images/projects/geodiffuser/movement/18.gif,
/assets/images/projects/geodiffuser/movement/16.gif,
/assets/images/projects/geodiffuser/movement/17.gif,
/assets/images/projects/geodiffuser/movement/19.gif,
/assets/images/projects/geodiffuser/movement/20.gif,
/assets/images/projects/geodiffuser/movement/12.gif,
/assets/images/projects/geodiffuser/movement/13.gif,
/assets/images/projects/geodiffuser/movement/9.gif,
/assets/images/projects/geodiffuser/movement/21.gif,
"
img_width="24.9%" %}

#### Object Removal

{% include gallery.html
img="/assets/images/projects/geodiffuser/removal/1.gif,
/assets/images/projects/geodiffuser/removal/2.gif,
/assets/images/projects/geodiffuser/removal/3.gif,
/assets/images/projects/geodiffuser/removal/4.gif,
/assets/images/projects/geodiffuser/removal/5.gif,
/assets/images/projects/geodiffuser/removal/6.gif,
/assets/images/projects/geodiffuser/removal/9.gif,
/assets/images/projects/geodiffuser/removal/8.gif,
"
img_width="24.9%" %}


## Overview

{% include full_image.html path="/assets/images/projects/geodiffuser/Teaser_updated.001.jpeg" %}

The success of image generative models has enabled us to build methods that can edit images based on text or other user input. However, these methods are bespoke, imprecise, require additional information, or are limited to only 2D image edits. We present GeoDiffuser, a zero-shot optimization-based method that unifies common 2D and 3D image-based object editing capabilities into a single method. Our key insight is to view image editing operations as geometric transformations. We show that these transformations can be directly incorporated into the attention layers in diffusion models to implicitly perform editing operations. Our training-free optimization method uses an objective function that seeks to preserve object style but generate plausible images, for instance with accurate lighting and shadows. It also inpaints disoccluded parts of the image where the object was originally located. Given a natural image and user input, we segment the foreground object using SAM and estimate a corresponding transform which is used by our optimization approach for editing. GeoDiffuser can perform common 2D and 3D edits like object translation, 3D rotation, and removal. We present quantitative results, including a perceptual study, that shows how our approach is better than existing methods.




## General Editing Framework


Expand Down

0 comments on commit 1eafb5b

Please sign in to comment.