summaryrefslogtreecommitdiff
path: root/app/relay/modules/biggan.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-12-18 21:13:05 +0100
committerJules Laplace <julescarbon@gmail.com>2019-12-18 21:13:05 +0100
commitfe8ab6133a31284d94944f5d75da9d6ad2b2bdb9 (patch)
tree6b73b14bd88b64868d776b481d2aca0feb453c9c /app/relay/modules/biggan.js
parent3a432e15399bd756cdeef376b46ae2968559790c (diff)
adding biggan
Diffstat (limited to 'app/relay/modules/biggan.js')
-rw-r--r--app/relay/modules/biggan.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/relay/modules/biggan.js b/app/relay/modules/biggan.js
new file mode 100644
index 0000000..4a03117
--- /dev/null
+++ b/app/relay/modules/biggan.js
@@ -0,0 +1,21 @@
+import path from 'path'
+import fs from 'fs'
+
+const name = 'biggan'
+const cwd = process.env.BIGGAN_CWD || path.join(process.env.HOME, 'code/' + name + '/')
+const live = {
+ type: 'pytorch',
+ script: 'live.py',
+ params: (task) => {
+ console.log(task)
+ const opt = task.opt || {}
+ return []
+ }
+}
+
+export default {
+ name, cwd, env,
+ activities: {
+ live,
+ }
+}