Skip to content

Tests Minimal Examples

Alexander Lenail edited this page Dec 28, 2018 · 1 revision

FCNN Layout

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>  <!-- Required for labels to render properly -->
</head>

<body>

<div id="graph-container"></div>


<script type="text/javascript" src="https://d3js.org/d3.v5.min.js"></script>
<script type="text/javascript" src="FCNN.js"></script>

<script type="text/javascript">

fcnn = FCNN();

fcnn.redraw({'architecture_': [10, 10, 10]});
fcnn.redistribute({'betweenNodesInLayer_': [10, 10, 10]});

</script>

</body>


</html>

LeNet Layout

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head></head>

<body>

<div id="graph-container"></div>


<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>

<script type="text/javascript" src="https://d3js.org/d3.v5.min.js"></script>
<script type="text/javascript" src="LeNet.js"></script>

<script type="text/javascript">

lenet = LeNet();

var architecture = [{'numberOfSquares': 24, 'squareWidth': 160, 'stride': 24}, {'numberOfSquares': 24, 'squareWidth': 16, 'stride': 8}];
var architecture2 = [128, 64, 8];

lenet.redraw({'architecture_':architecture, 'architecture2_':architecture2});

lenet.redistribute({'betweenLayers_': [100, 100, 100, 100, 100], 'betweenSquares_': 10});

</script>

</body>


</html>

AlexNet Layout

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
</head>

<body>

<div id="graph-container"></div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/91/three.min.js"></script>
<script src="OrbitControls.js"></script>
<script src="SVGRenderer.js"></script>
<script src="Projector.js"></script>

<script src="AlexNet.js"></script>

<script type="text/javascript">

alexnet = AlexNet();

var architecture = [{widthAndHeight: 224, depth: 3, stride: 11}];
var architecture2 = [100, 10];

alexnet.redraw({'architecture_':architecture, 'architecture2_':architecture2});


</script>

</body>


</html>

Clone this wiki locally