Skip to content

Commit

Permalink
feat: add clip2nerf
Browse files Browse the repository at this point in the history
  • Loading branch information
frallebini committed Apr 10, 2024
1 parent 58f706f commit 1e8a8f7
Show file tree
Hide file tree
Showing 21 changed files with 457 additions and 0 deletions.
53 changes: 53 additions & 0 deletions clip2nerf/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.CodeMirror {
font-size: .8em;
height: auto;
}

.CodeMirror-scroll {
overflow-y: hidden;
overflow-x: auto;
}

#header_img {
margin-top: 2em;
margin-bottom: 1em;
}

.list-inline {
list-style: none;
margin-left: -0.5em;
margin-right: -0.5em;
padding-left: 0;
}

.list-inline>li {
display: inline-block;
margin-left: 0.5em;
margin-right: 0.5em;
}

.image_center_80 {
display: block;
margin-left: auto;
margin-right: auto;
width: 80%;
}

.image_center_100 {
display: block;
margin-left: auto;
margin-right: auto;
width: 100%;
}

.img_gray {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-o-filter: grayscale(100%);
-ms-filter: grayscale(100%);
filter: grayscale(100%);
}

.img_border {
border: 1px solid rgb(128, 125, 125);
}
11 changes: 11 additions & 0 deletions clip2nerf/css/bootstrap.min.css

Large diffs are not rendered by default.

Binary file added clip2nerf/img/drive_icon.png
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 clip2nerf/img/encoder.png
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 clip2nerf/img/generative.png
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 clip2nerf/img/github.png
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 clip2nerf/img/github_pad.png
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 clip2nerf/img/inr2vec.png
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 clip2nerf/img/inr2vec_io.png
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 clip2nerf/img/interpolation.png
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 clip2nerf/img/logo_cvlab.png
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 clip2nerf/img/mapping.png
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 clip2nerf/img/paper_ico.png
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 clip2nerf/img/partseg.png
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 clip2nerf/img/tab_classification.png
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 clip2nerf/img/tab_retrieval.png
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 clip2nerf/img/teaser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions clip2nerf/img/teaser.svg
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 clip2nerf/img/youtube_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
350 changes: 350 additions & 0 deletions clip2nerf/index.html

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions clip2nerf/js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

$(document).ready(function() {
var editor = CodeMirror.fromTextArea(document.getElementById("bibtex"), {
lineNumbers: false,
lineWrapping: true,
readOnly:true
});
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});


// var frameNumber = 0, // start video at frame 0
// // lower numbers = faster playback
// playbackConst = 500,
// // get page height from video duration
// setHeight = document.getElementById("main"),
// // select video element
// vid = document.getElementById('v0');
// // var vid = $('#v0')[0]; // jquery option




// // Use requestAnimationFrame for smooth playback
// function scrollPlay(){
// var frameNumber = window.pageYOffset/playbackConst;
// vid.currentTime = frameNumber;
// window.requestAnimationFrame(scrollPlay);
// console.log('scroll');
// }

// // dynamically set the page height according to video length
// vid.addEventListener('loadedmetadata', function() {
// setHeight.style.height = Math.floor(vid.duration) * playbackConst + "px";
// });


// window.requestAnimationFrame(scrollPlay);
});

0 comments on commit 1e8a8f7

Please sign in to comment.