Skip to content

Commit 3baa801

Browse files
author
DeliciousLlama
committed
major bug fixes
1 parent e70187a commit 3baa801

14 files changed

Lines changed: 343 additions & 288 deletions

File tree

TODO.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
8. ~~Create export functionality~~
1414
9. ~~Add meta previews~~
1515
10. ~~Fix the bug for training failure~~
16-
11. Add file type detection
17-
12. Test all features
18-
13. Improve home page
19-
14. Add analytics
20-
15. Fuck you
21-
16. write a basic *README*
16+
11. ~~Add file type detection~~
17+
12. ~~Test all features~~
18+
13. ~~Improve home page~~
19+
14. ~~Add analytics~~
20+
15. write a basic *README*

about/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ <h2 class='unselectable' style="font-size: 2.5rem; font-weight:430; font-family:
5858
<a href="../license-info/" class='copyrightmsg unselectable' style='position: absolute; bottom:1vh; color:gray'>
5959
Copyright &copy; 2021 LemonOrange
6060
</a>
61+
6162
<script src="../anime.min.js"></script>
6263
<script src="index.js"></script>
64+
<script data-host="https://microanalytics.io" data-dnt="false" src="https://microanalytics.io/js/script.js" id="ZwSg9rf6GA" async defer></script>
6365
</body>
6466
</html>

blank/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@
2929
</p>
3030
<script src="../anime.min.js"></script>
3131
<script src="index.js"></script>
32+
<script data-host="https://microanalytics.io" data-dnt="false" src="https://microanalytics.io/js/script.js" id="ZwSg9rf6GA" async defer></script>
3233
</body>
3334
</html>

grid.svg

Lines changed: 29 additions & 15 deletions
Loading

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</h2>
4747
<h3 class='unselectable' style='cursor: default; font-weight: 500; font-size: 1.2rem;
4848
letter-spacing: 0rem; margin:0; color: #747474; font-family: poppins;'>
49-
Beta 1.0
49+
Beta 1.1
5050
</h3>
5151
</section>
5252
</section>
@@ -60,7 +60,7 @@
6060
What Is This
6161
</a>
6262
</section>
63-
<a style="font-size: 0.85rem; color:#767676" href="https://github.com/LemonOrangeWasTaken/DeepFusion/issues/new" target="_blank">Report Bug</a>
63+
<a style="font-size: 0.85rem; color:#767676; margin-top: 0.75rem;" href="https://github.com/LemonOrangeWasTaken/DeepFusion/issues" target="_blank">Report Bug</a>
6464

6565
<!-- github corner thing -->
6666
<a href="https://github.com/LemonOrangeWasTaken/DeepFusion" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#ffffff; color:#1d2021; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
@@ -71,5 +71,6 @@
7171

7272
<script src="anime.min.js"></script>
7373
<script src="index.js"></script>
74+
<script data-host="https://microanalytics.io" data-dnt="false" src="https://microanalytics.io/js/script.js" id="ZwSg9rf6GA" async defer></script>
7475
</body>
7576
</html>

license-info/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,5 +820,6 @@ <h5 style='color:white; width:100%; text-align: center; margin-top:1rem'>
820820

821821
<script src="../anime.min.js"></script>
822822
<script src="index.js"></script>
823+
<script data-host="https://microanalytics.io" data-dnt="false" src="https://microanalytics.io/js/script.js" id="ZwSg9rf6GA" async defer></script>
823824
</body>
824825
</html>

model-maker/events.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,14 @@ function add_input_menu_events(){
421421
document.querySelector("#input-file").onchange = () => {
422422
let file = document.querySelector("#input-file").files[0], read = new FileReader()
423423
let file_name = file.name
424+
425+
// check file type
426+
if(file.type !== "text/csv"){
427+
dflog(errormsg, "Upload failed: Only CSV files are supported for now!")
428+
dflog(blankmsg, "Or if you don't have a CSV file, you can click the <strong>⋮</strong> next to the upload button for a sample dataset.")
429+
return;
430+
}
431+
424432
read.readAsBinaryString(file); // convert to String
425433
read.onloadend = function(){
426434
// when uploading, lag stems from here. This needs to be shifted to a backend server for processing in the future.
@@ -461,6 +469,14 @@ function add_output_menu_events(){
461469
// read csv file from the upload button
462470
let file = document.querySelector("#output-file").files[0], read = new FileReader()
463471
let file_name = file.name
472+
473+
// check file type
474+
if(file.type !== "text/csv"){
475+
dflog(errormsg, "Upload failed: Only CSV files are supported for now!")
476+
dflog(blankmsg, "Or if you don't have a CSV file, you can click the <strong>⋮</strong> next to the upload button for a sample dataset.")
477+
return;
478+
}
479+
464480
read.readAsBinaryString(file); // convert to String
465481
read.onloadend = function(){
466482
// when uploading, lag stems from here. This needs to be shifted to a backend server for processing in the future.

model-maker/index.html

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,8 @@ <h4 style="margin:0">Add Layers:</h4>
6363
<p>Dropout</p>
6464
</button>
6565
<div class="vr" style="height:70%"></div>
66-
<a class="default-upload smallest-default-upload node-selection node-selection-menu-expander buttonlike"
67-
style="height:80%;" id="drop_node_add" href="https://github.com/LemonOrangeWasTaken/DeepFusion/discussions/new" target="_blank">
68-
<p class="default-upload-decor" style="cursor: pointer;">···</p>
69-
<p style="margin-left:0.65rem; cursor: pointer;">Suggestions?</p>
66+
<a class="buttonlike node-selection" style="width: fit-content" id="drop_node_add" href="https://github.com/LemonOrangeWasTaken/DeepFusion/discussions/categories/feature-requests" target="_blank">
67+
<p style="cursor: pointer;">Suggestions?</p>
7068
</a>
7169
</section>
7270
</div>
@@ -105,9 +103,8 @@ <h4>
105103
<button id="check-net" style="width:100%">
106104
<p>Check Network</p>
107105
</button>
108-
<button id="compile-net" class='default-upload smaller-default-upload'>
109-
<p class="default-upload-decor">···</p>
110-
<p style="margin-left:0.65rem">Compile</p>
106+
<button id="compile-net" style="padding:0; width:70%">
107+
<p>Compile</p>
111108
</button>
112109
</section>
113110

@@ -130,38 +127,40 @@ <h4>
130127
style="width:17rem; height:calc(100vh - 3.2rem); bottom:0; left:0;
131128
display:flex; align-items: center; justify-content: flex-start; padding:0.2rem 0.8rem 0 0.8rem; flex-direction: column; overflow: auto;">
132129

133-
<section style="width:95%; height: fit-content">
134-
<div class="terminal" style="min-height:10rem; height:calc(100vh - 24rem)" id="dfterm">
135-
<span style="margin:0.5vh 0 0 0">Welcome to DeepFusion <span style="color:greenyellow">Beta 1.0</span>.</span>
130+
<section style="width:95%; height: fit-content; position:relative">
131+
<div class="terminal" style="min-height:10rem; height:calc(100vh - 24rem); position: relative;" id="dfterm">
132+
<span style="margin:0.5vh 0 0 0">Welcome to DeepFusion <span style="color:greenyellow">Beta 1.1</span>.</span>
136133
<span>If you want to you can support this project on
137134
<a style="color:rgb(0, 153, 255); font-weight: 600;" href="https://github.com/LemonOrangeWasTaken/DeepFusion">GitHub</a>
138135
, or subscribe to my
139136
<a style="color:rgb(255, 68, 68); font-weight: 600;" href="https://www.youtube.com/channel/UCut2xeBl7HcPEPatqpEUoQw">YouTube</a>.
140137
Yes you can scroll on this makeshift terminal when it overflows.
141138
</span>
142139
<span style="margin:0">---</span>
143-
<span class="info">Type "help", "about", or "license" for more information</span>
140+
<span class="info">Type "help", "whatsnew", or "license" for more information</span>
141+
144142
</div>
145-
143+
144+
<!-- terminal control buttons -->
145+
<section id="terminal-ctrl"
146+
style="position: absolute; right:0.4rem; bottom:2.45rem; display: flex; flex-direction: row; justify-content: flex-end;
147+
padding: 0; width:fit-content">
148+
149+
<button class="terminal-btn" id="zoom-in-term" title="Zoom In Terminal">
150+
<img style="width:auto; height:0.5rem; margin:0" src="../zoom-in.svg" alt="Zoom In Terminal">
151+
</button>
152+
<button class="terminal-btn" id="zoom-out-term" title="Zoom Out Terminal">
153+
<img style="width:0.5rem; height:auto; margin:0" src="../zoom-out.svg" alt="Zoom Out Terminal">
154+
</button>
155+
156+
</section>
157+
146158
<!-- terminal input section. It will also contain the buttons for configuring the terminal. -->
147159

148-
<section style="display:flex; width:100%; height:auto; position: relative;">
160+
<section id="term-input-container" style="display:flex; width:100%; height:auto; position: relative;">
149161
<input type="text" class="terminal-in" id="term-input"
150162
style="font-family: 'Source Code Pro'; font-size: 0.75rem;" placeholder=">>>">
151163
</input>
152-
153-
<!-- terminal control buttons -->
154-
<section id="terminal-ctrl"
155-
style="position: absolute; right:0.4rem; top:-3rem; display: flex; flex-direction: row; justify-content: flex-end; padding: 1rem 0 0 0; width:55%; pointer-events: none;">
156-
157-
<button class="terminal-btn">
158-
<img style="width:0.75rem; height:auto; margin:0" src="../zoom-in.svg" alt="Zoom In Terminal">
159-
</button>
160-
<button class="terminal-btn">
161-
<img style="width:0.75rem; height:auto; margin:0" src="../zoom-out.svg" alt="Zoom Out Terminal">
162-
</button>
163-
164-
</section>
165164
</section>
166165
</section>
167166

@@ -271,7 +270,7 @@ <h3 class="unselectable" style="cursor:pointer">
271270
</section>
272271

273272
<!-- version watermark -->
274-
<p style="position: absolute; bottom:8rem; font-size: 0.9rem; font-family: Montserrat; opacity: 0.4;">Public Beta 1.0</p>
273+
<p style="position: absolute; bottom:8rem; font-size: 0.9rem; font-family: Montserrat; opacity: 0.4;">Public Beta 1.1</p>
275274

276275
<!-- canvas area -->
277276
<section id="canvas-drag" style="position:absolute; display:flex; justify-content: center; align-items:center;
@@ -305,12 +304,12 @@ <h3 class="unselectable" style="cursor:pointer">
305304
.pagecontainer {display:none;}
306305
</style>
307306
<div class="noscriptmsg" style="z-index:999; position:absolute; width:100%; height:100%; top:0; left:0; display:flex; flex-direction: column;
308-
align-items: center; justify-content: center; background-color: #00000083; backdrop-filter: blur(5px);">
307+
align-items: center; justify-content: center; background-color: #00000065; backdrop-filter: blur(5px);">
309308
<h1 style="font-family: arial; text-align: center; margin-bottom:2rem; cursor: text; z-index: 1000;">
310309
( ._.)
311310
</h1>
312311
<h2 style="letter-spacing:0; font-weight: 500; font-size: 2rem; cursor: text; z-index: 1000;">
313-
You don"t seem to have Javascript enabled...
312+
You don't seem to have Javascript enabled...
314313
</h2>
315314
<h4 style="text-align:center; margin-top:1vh; font-weight: 400; font-size: 1rem; z-index: 1000; margin-top:1rem">
316315
This site needs Javascript to function properly.
@@ -319,12 +318,14 @@ <h4 style="text-align:center; margin-top:1vh; font-weight: 400; font-size: 1rem;
319318
</noscript>
320319

321320
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@2.0.0/dist/tf.min.js"></script>
321+
<script data-host="https://microanalytics.io" data-dnt="false" src="https://microanalytics.io/js/script.js" id="ZwSg9rf6GA" async defer></script>
322322
<script src="../anime.min.js"></script>
323323
<script src="../json2html.min.js"></script>
324324
<script src="terminal-handler.js"></script>
325325
<script src="events.js"></script>
326326
<script src="style.js"></script>
327327
<script src="node-templates.js"></script>
328+
<script src="terminal-templates.js"></script>
328329
<script src="menu-templates.js"></script>
329330
<script src="menu-handler.js"></script>
330331
<script src="standards.js"></script>

model-maker/menu-templates.js

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ const INPUT_NODE_MENU = [ // file_name
2020
"html" : [
2121
{
2222
"<>" : "section",
23-
"style" : "width:100%; height:fit-content; display:flex; flex-direction:row",
23+
"style" : "width:100%; height:fit-content; display:flex; flex-direction:row;",
2424
"html": [{
2525
"<>" : "button",
2626
"id" : "input-upload",
27-
"style" : "width:100%",
27+
"style" : "width:calc(100% - 0rem)",
2828
"html":[{
2929
"<>":"p",
3030
"text":"Upload"
@@ -41,7 +41,7 @@ const INPUT_NODE_MENU = [ // file_name
4141
},{
4242
"<>":"p",
4343
"id":"default-upload-text",
44-
"style":"margin-left:0.65rem",
44+
"style":"margin-left:0.1rem",
4545
"text":"use default"
4646
}]
4747
}],
@@ -113,7 +113,7 @@ const OUTPUT_NODE_MENU = [ // file_name
113113
},{
114114
"<>":"p",
115115
"id":"default-upload-text",
116-
"style":"margin-left:0.65rem",
116+
"style":"margin-left:0.1rem",
117117
"text":"use default"
118118
}]
119119
}],
@@ -170,7 +170,7 @@ const DENSE_NODE_MENU = [ // uuid, neuronct
170170
"<>" : "input",
171171
"type" : "range",
172172
"min" : "1",
173-
"max" : "200",
173+
"max" : "1000",
174174
"value" : "${neuronct}",
175175
"class" : "slider",
176176
"id" : "${uuid}neuron-slider",
@@ -264,10 +264,6 @@ const DENSE_NODE_MENU = [ // uuid, neuronct
264264
"<>" : "option",
265265
"value" : "heu",
266266
"text" : "He-Uniform",
267-
},{
268-
"<>" : "option",
269-
"value" : "ide",
270-
"text" : "Identity",
271267
},{
272268
"<>" : "option",
273269
"value" : "lec",
@@ -344,10 +340,6 @@ const DENSE_NODE_MENU = [ // uuid, neuronct
344340
"<>" : "option",
345341
"value" : "heu",
346342
"text" : "He-Uniform",
347-
},{
348-
"<>" : "option",
349-
"value" : "ide",
350-
"text" : "Identity",
351343
},{
352344
"<>" : "option",
353345
"value" : "lec",
@@ -534,7 +526,7 @@ const DROP_NODE_MENU = [ // uuid, neuronct
534526
"<>" : "input",
535527
"type" : "range",
536528
"min" : "0",
537-
"max" : "100",
529+
"max" : "90",
538530
"value" : "${chance}",
539531
"class" : "slider",
540532
"id" : "${uuid}prob-slider",

0 commit comments

Comments
 (0)