Skip to content

Commit

Permalink
Merge branch 'master' into attacks_protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Ram81 authored Nov 17, 2018
2 parents 3d148b0 + eb83356 commit 5117147
Show file tree
Hide file tree
Showing 35 changed files with 304 additions and 74 deletions.
22 changes: 22 additions & 0 deletions ide/static/css/searchbar_style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
float: left;
}

#model-search-icon {
position: relative;
left: 0px;
top: 0px;
float: left;
}

#layer-search-icon:hover {
cursor: pointer;
}
Expand All @@ -28,6 +35,21 @@
transition: 0.3s;
}

#model-search-input {
position: relative;
top: 0px;
left: 0px;
width: 60%;
height: 25px;
font-size: 15px;
background: none;
border: none;
color: rgb(69, 80, 97);
outline: none;
opacity: 1;
transition: 0.3s;
}

.filter-button {
height: 24px !important;
}
Expand Down
101 changes: 101 additions & 0 deletions ide/static/css/zoo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
body {
overflow-x: hidden;
}

#wrapper {
padding-left: 250px;
}

#sidebar-wrapper {
z-index: 1000;
position: fixed;
left: 200px;
top: 0px;
width: 200px;
height: 110%;
margin-left: -200px;
overflow-y: auto;
background: #F5F5F5;
}


#page-content-wrapper {
width: 100%;
padding: 20px;
padding-left: 200px;
position: relative;
}

.sidebar-content {
min-height: 80vh;
height: 0px;
overflow-y: scroll;
}

.sidebar-nav {
position: absolute;
top: 0;
width: 250px;
margin: 0;
padding: 0;
list-style: none;
}

.sidebar-nav li {
text-indent: 20px;
line-height: 40px;
cursor: pointer;
}

.sidebar-nav li a {
display: block;
text-decoration: none;
color: #000000;
}

.sidebar-nav li a:hover {
text-decoration: none;
color: #000;
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
height: 65px;
font-size: 18px;
line-height: 60px;
}

.sidebar-nav > .sidebar-brand a {
color: #000000;
}


.sidebar-content img {
width: 60%;
}

.filterbar-container {
margin-top: 24px;
margin-left: 16px;
}

.wordwrap {
white-space: pre-wrap; /* CSS3 */
white-space: -moz-pre-wrap; /* Firefox */
white-space: -pre-wrap; /* Opera <7 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* IE */
}

.caption {
height: 80px;
}

.bold {
background: #cdcfd2;
font-weight: bold;
}
Binary file added ide/static/img/zoo/All_CNN.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 ide/static/img/zoo/CoCo_Caption.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 ide/static/img/zoo/DAE_MNIST.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 ide/static/img/zoo/GoogleNet.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 ide/static/img/zoo/HED.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 ide/static/img/zoo/SENet.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 ide/static/img/zoo/Squeezenet.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 ide/static/img/zoo/VQA.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 ide/static/img/zoo/VQA2.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 ide/static/img/zoo/ZF_UNET_224.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 ide/static/img/zoo/alexnet.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 ide/static/img/zoo/cifar10_full.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 ide/static/img/zoo/densenet.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 ide/static/img/zoo/fcn.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 ide/static/img/zoo/fcn2.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 ide/static/img/zoo/imdb_cnn_lstm.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 ide/static/img/zoo/lenet.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 ide/static/img/zoo/mlpVQA.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 ide/static/img/zoo/pix2pix.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 ide/static/img/zoo/resnet101.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 ide/static/img/zoo/seq2seq_lang.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 ide/static/img/zoo/siamese_mnist.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 ide/static/img/zoo/simpleNet.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 ide/static/img/zoo/textGeneration.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 ide/static/img/zoo/v3.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 ide/static/img/zoo/v4.png
Binary file added ide/static/img/zoo/vanilla.png
Binary file added ide/static/img/zoo/vgg16.png
Binary file added ide/static/img/zoo/yolo_net.png
18 changes: 10 additions & 8 deletions ide/static/js/modelElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ class ModelElement extends React.Component {
render() {
if (this.props.children){
return (
<a
style={{color: "#848a92"}}
className="btn"
onClick={() => this.props.importNet('sample'+this.props.framework, this.props.id)}
>
{this.props.children}
</a>
<div id={this.props.displayName} className="col-sm-6 col-md-4">
<div className="btn thumbnail text-center" onClick={() => this.props.importNet('sample'+this.props.framework, this.props.id)}>
<img src={"/static/img/zoo/" + this.props.id + ".png"} />
<div className="caption">
<h3 className="wordwrap">{this.props.displayName}</h3>
</div>
</div>
</div>
);
}
else
Expand All @@ -25,7 +26,8 @@ ModelElement.propTypes = {
importNet: React.PropTypes.func,
framework: React.PropTypes.string.isRequired,
children: React.PropTypes.string.isRequired,
id: React.PropTypes.string.isRequired
id: React.PropTypes.string.isRequired,
displayName: React.PropTypes.string.isRequired
};

export default ModelElement;
Loading

0 comments on commit 5117147

Please sign in to comment.