Restructure for server

This commit is contained in:
Ruben van de Ven 2020-12-17 14:24:53 +01:00
parent 0679766f6c
commit 9da0806c38
8 changed files with 13 additions and 3 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
dataset/

12
download_datasets.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
mkdir dataset
cd dataset
wget http://images.cocodataset.org/annotations/annotations_trainval2017.zip
unzip annotations_trainval2017.zip
rm annotations_trainval2017.zip
wget http://images.cocodataset.org/zips/val2017.zip
unzip val2017.zip
rm val2017.zip
cd ..

View file

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View file

View file

@ -4,9 +4,6 @@ import { getPathShapeBetweenPoints } from "./svg.js";
export function init(svgEl, crosshairXEl, crosshairYEl) {
let flywheel = new Flywheel();
// use ?3 and ?4 ?28 etc in query string to determine segments
const segmentCount = window.location.search.substr(1).length ? window.location.search.substr(1) : 4;
// canvas position relative to mouse/screen
// TODO: update on resize:
svgEl.setAttribute('viewBox', '0 0 ' + window.innerWidth + ' ' + window.innerHeight);