summaryrefslogtreecommitdiff
path: root/app/client/modules/pix2pixhd/views/pix2pixhd.train.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-23 20:37:43 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-23 20:37:43 +0200
commitd0b5aee1fbd50d58c418952cd649c6ed28260e23 (patch)
tree84c242c1f136b2b77a7005faecfb41fe5103f594 /app/client/modules/pix2pixhd/views/pix2pixhd.train.js
parent37e84dd361c446245db47b7ecd344dc668d4f4f7 (diff)
more tasklist stuff
Diffstat (limited to 'app/client/modules/pix2pixhd/views/pix2pixhd.train.js')
-rw-r--r--app/client/modules/pix2pixhd/views/pix2pixhd.train.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/client/modules/pix2pixhd/views/pix2pixhd.train.js b/app/client/modules/pix2pixhd/views/pix2pixhd.train.js
index 1641976..c5e8e67 100644
--- a/app/client/modules/pix2pixhd/views/pix2pixhd.train.js
+++ b/app/client/modules/pix2pixhd/views/pix2pixhd.train.js
@@ -83,7 +83,7 @@ class Pix2PixHDTrain extends Component {
if (folder.name === 'results') return
const datasets = folder.datasets.map(name => {
const dataset = datasetLookup[name]
- if (dataset.checkpoints.length) {
+ if (dataset.isBuilt && dataset.checkpoints.length) {
return name
}
return null
@@ -104,10 +104,10 @@ class Pix2PixHDTrain extends Component {
</div>
<div className='columns'>
<div className='column'>
- <Group title='Dataset'>
+ <Group title='Sequence'>
<SelectGroup
name='checkpoint_name'
- title='Dataset'
+ title='Sequence name'
options={checkpointGroups}
onChange={this.handleChange}
placeholder='Pick a dataset'
@@ -116,7 +116,7 @@ class Pix2PixHDTrain extends Component {
<Select
title="Epoch"
name="epoch"
- options={this.props.pix2pixhd.data.epochs}
+ options={this.props.pix2pixhd.epochs}
onChange={this.handleChange}
value={this.state.epoch}
/>
@@ -132,11 +132,12 @@ class Pix2PixHDTrain extends Component {
renderEditor(){
const { pix2pixhd, queue } = this.props
- const { checkpoint } = pix2pixhd
+ const { checkpoint, folder_id } = pix2pixhd
return (
<div>
<Group title='Sequence Editor'>
<SequenceEditor
+ folder_id={folder_id}
module={pix2pixhdModule}
checkpoint={checkpoint}
/>
@@ -156,7 +157,7 @@ class Pix2PixHDTrain extends Component {
})
}}
onTrain={() => {
- this.props.remote.train_task(this.state.checkpoint_name, pix2pixhd.folder_id, 1)
+ this.props.remote.train_task(this.state.checkpoint_name, folder_id, 1)
setTimeout(() => { // auto-generate epoch demo
this.props.remote.augment_task(this.state.checkpoint_name, {
...this.state,