From 0717df361a510e0ce02a4e8cb00796a4b897f02f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 24 Sep 2018 00:36:21 +0200 Subject: check if dataset is generated --- .../modules/pix2pixhd/views/sequence.editor.js | 29 ++++++---------------- 1 file changed, 8 insertions(+), 21 deletions(-) (limited to 'app/client/modules/pix2pixhd/views/sequence.editor.js') diff --git a/app/client/modules/pix2pixhd/views/sequence.editor.js b/app/client/modules/pix2pixhd/views/sequence.editor.js index 33ed629..135dfb3 100644 --- a/app/client/modules/pix2pixhd/views/sequence.editor.js +++ b/app/client/modules/pix2pixhd/views/sequence.editor.js @@ -18,26 +18,6 @@ const initialState = { title: null, } -/* - so there are two things you could do with this - 1) create an entirely new dataset - 2) add frames to an existing dataset - ... - method 1) - - requires minimal setup, just a server script which.. - - creates the new sequence folder - - symlinks the frames - - runs build_dataset - - create appropriate file object, using parent dataset's folder_id - - enqueue initial training - ---> we can then train on basic subsets, with more control, like we do already... - - tell parent dataset thing the new sequence name - ... - method 2) - - requires sequence editor to be aware of its own dataset - - requires sequence editor to know whether a sequence is original or not -*/ - class SequenceEditor extends Component { state = { ...initialState } @@ -80,9 +60,10 @@ class SequenceEditor extends Component { } render() { - const { app, remote, checkpoint, folder_id } = this.props + const { app, pix2pixhd, remote, checkpoint, folder_id, generated } = this.props const { cursor, selection, title } = this.state const path = "sequences/" + checkpoint.name + console.log(checkpoint, pix2pixhd) return (
{selection @@ -106,6 +87,11 @@ class SequenceEditor extends Component { Create + + {generated + ? 'Salting is only available on generated datasets.' + : 'Salting coming soon!'} +
:
Please select some frames
} @@ -145,6 +131,7 @@ function Frame ({ label, path, frame }) { const mapStateToProps = state => ({ app: state.system.app, + pix2pixhd: state.module.pix2pixhd, }) const mapDispatchToProps = (dispatch, ownProps) => ({ -- cgit v1.2.3-70-g09d2