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

Method start

caffevis/app.py:148–167  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

146 self.net_layer_info[key]['tile_cols'] = self.net_layer_info[key]['tiles_rc'][1]
147
148 def start(self):
149 self.state = CaffeVisAppState(self.net, self.settings, self.bindings, self.net_layer_info)
150 self.state.drawing_stale = True
151 self.layer_print_names = [get_pretty_layer_name(self.settings, nn) for nn in self.state._layers]
152
153 if self.proc_thread is None or not self.proc_thread.is_alive():
154 # Start thread if it's not already running
155 self.proc_thread = CaffeProcThread(self.settings, self.net, self.state,
156 self.settings.caffevis_frame_wait_sleep,
157 self.settings.caffevis_pause_after_keys,
158 self.settings.caffevis_heartbeat_required,
159 self.settings.caffevis_mode_gpu)
160 self.proc_thread.start()
161
162 if self.jpgvis_thread is None or not self.jpgvis_thread.is_alive():
163 # Start thread if it's not already running
164 self.jpgvis_thread = JPGVisLoadingThread(self.settings, self.state, self.img_cache,
165 self.settings.caffevis_jpg_load_sleep,
166 self.settings.caffevis_heartbeat_required)
167 self.jpgvis_thread.start()
168
169
170 def get_heartbeats(self):

Callers

nothing calls this directly

Calls 4

CaffeVisAppStateClass · 0.90
get_pretty_layer_nameFunction · 0.90
CaffeProcThreadClass · 0.90
JPGVisLoadingThreadClass · 0.90

Tested by

no test coverage detected