MCPcopy
hub / github.com/yosinski/deep-visualization-toolbox / handle_input

Method handle_input

caffevis/app.py:193–205  ·  view source on GitHub ↗
(self, input_image, panes)

Source from the content-addressed store, hash-verified

191 return ('caffevis_layers' not in panes.keys())
192
193 def handle_input(self, input_image, panes):
194 if self.debug_level > 1:
195 print 'handle_input: frame number', self.handled_frames, 'is', 'None' if input_image is None else 'Available'
196 self.handled_frames += 1
197 if self._can_skip_all(panes):
198 return
199
200 with self.state.lock:
201 if self.debug_level > 1:
202 print 'CaffeVisApp.handle_input: pushed frame'
203 self.state.next_frame = input_image
204 if self.debug_level > 1:
205 print 'CaffeVisApp.handle_input: caffe_net_state is:', self.state.caffe_net_state
206
207 def redraw_needed(self):
208 return self.state.redraw_needed()

Callers

nothing calls this directly

Calls 1

_can_skip_allMethod · 0.95

Tested by

no test coverage detected