diff options
Diffstat (limited to 'app/client')
| -rw-r--r-- | app/client/live/live.reducer.js | 1 | ||||
| -rw-r--r-- | app/client/live/whammy.js | 4 | ||||
| -rw-r--r-- | app/client/modules/pix2pix/views/pix2pix.live.js | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/app/client/live/live.reducer.js b/app/client/live/live.reducer.js index 1ab8e37..f1f2f4e 100644 --- a/app/client/live/live.reducer.js +++ b/app/client/live/live.reducer.js @@ -17,6 +17,7 @@ const liveInitialState = { const liveReducer = (state = liveInitialState, action) => { let results; + if (action.type !== 'SYSTEM_STDOUT') console.log(action.type, action) switch(action.type) { case types.socket.load_params: if (! action.opt || ! Object.keys(action.opt).length) { diff --git a/app/client/live/whammy.js b/app/client/live/whammy.js index 0b460cc..08a0ce9 100644 --- a/app/client/live/whammy.js +++ b/app/client/live/whammy.js @@ -496,7 +496,7 @@ module.exports = (function(){ if(frame.toDataURL){ // frame = frame.toDataURL('image/webp', this.quality); // quickly store image data so we don't block cpu. encode in compile method. - frame = frame.getContext('2d').getImageData(0, 0, frame.width, frame.height); + frame = frame.getContext('2d-lodpi').getImageData(0, 0, frame.width, frame.height); }else if(typeof frame != "string"){ throw "frame must be a a HTMLCanvasElement, a CanvasRenderingContext2D or a DataURI formatted string" } @@ -516,7 +516,7 @@ module.exports = (function(){ var frames = this.frames; var tmpCanvas = document.createElement('canvas'); - var tmpContext = tmpCanvas.getContext('2d'); + var tmpContext = tmpCanvas.getContext('2d-lodpi'); tmpCanvas.width = this.frames[0].image.width; tmpCanvas.height = this.frames[0].image.height; diff --git a/app/client/modules/pix2pix/views/pix2pix.live.js b/app/client/modules/pix2pix/views/pix2pix.live.js index a6e739c..26ad3ce 100644 --- a/app/client/modules/pix2pix/views/pix2pix.live.js +++ b/app/client/modules/pix2pix/views/pix2pix.live.js @@ -42,7 +42,7 @@ class Pix2PixLive extends Component { this.props.actions.live.load_epoch(this.props.opt.checkpoint_name, epoch_name) } changeSequence(field, sequence){ - console.log('got sequence', sequence) + console.log('load sequence', sequence) this.props.actions.live.load_sequence(sequence) } seek(percentage){ |
