Skip to content

Commit 0c62e7b

Browse files
move faceLandmarks training scripts to seperate directory
1 parent 1737a07 commit 0c62e7b

14 files changed

+8
-39
lines changed

tools/train/faceLandmarks/initWeightsDensenet.html renamed to tools/train/faceLandmarks/public/initWeightsDensenet.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.12.0"> </script>
5-
<script src="../node_modules/file-saver/FileSaver.js"></script>
5+
<script src="FileSaver.js"></script>
66
</head>
77
<body>
88

tools/train/serveFaceLandmarks.js renamed to tools/train/faceLandmarks/server.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
require('./faceLandmarks/.env')
1+
require('./.env')
22

33
const express = require('express')
44
const path = require('path')
55
const fs = require('fs')
66

77
const app = express()
88

9-
const publicDir = path.join(__dirname, './faceLandmarks')
9+
const publicDir = path.join(__dirname, './public')
1010
app.use(express.static(publicDir))
11-
app.use(express.static(path.join(__dirname, './shared')))
12-
app.use(express.static(path.join(__dirname, './node_modules/file-saver')))
13-
app.use(express.static(path.join(__dirname, '../../examples/public')))
14-
app.use(express.static(path.join(__dirname, '../../weights')))
15-
app.use(express.static(path.join(__dirname, '../../dist')))
11+
app.use(express.static(path.join(__dirname, '../shared')))
12+
app.use(express.static(path.join(__dirname, '../node_modules/file-saver')))
13+
app.use(express.static(path.join(__dirname, '../../../examples/public')))
14+
app.use(express.static(path.join(__dirname, '../../../weights')))
15+
app.use(express.static(path.join(__dirname, '../../../dist')))
1616

1717
const trainDataPath = path.resolve(process.env.TRAIN_DATA_PATH)
1818

tools/train/karma.conf.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

tools/train/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
2-
"scripts": {
3-
"start": "node server.js",
4-
"test": "karma start"
5-
},
62
"author": "justadudewhohacks",
73
"license": "MIT",
84
"dependencies": {

tools/train/tsconfig.test.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)