20. 2.1
Have an external
module with a
Batcher class
Mother class
ZMQ server
Will handle receiving data
Call a process_batch class
21. 2.1
Have an external
module with a
Batcher class
Mother class
ZMQ server
Will handle receiving data
Call a process_batch class
Handle sending response
36. 2.1 Batcher mother class
class Batcher(object):
def handle_request(self, message):
37. 2.1 Batcher mother class
class Batcher(object):
def handle_request(self, message):
# handle message as images / filter / etc
batch = self.create_batch(message)
38. 2.1 Batcher mother class
class Batcher(object):
def handle_request(self, message):
# handle message as images / filter / etc
batch = self.create_batch(message)
result = self.process_batch(batch) # will be redefined
39. 2.1 Batcher mother class
class Batcher(object):
def handle_request(self, message):
# handle message as images / filter / etc
batch = self.create_batch(message)
result = self.process_batch(batch) # will be redefined
# format result into zmq response
return self.format_result(result)
40. 2.1 Batcher mother class
class Batcher(object):
def __init__(self):
…
def get_parser(self):
…
def run_server(self):
…
78. lvl 1
Manual training
Script for inference
No real prod
lvl 2
Manual training
Prod pipeline
Fixed
lvl 3
Training pipeline
79. lvl 1
Manual training
Script for inference
No real prod
lvl 2
Manual training
Prod pipeline
Fixed
lvl 3
Training pipeline
Prod pipeline
80. lvl 1
Manual training
Script for inference
No real prod
lvl 2
Manual training
Prod pipeline
Fixed
lvl 3
Training pipeline
Prod pipeline
Distributed
81. lvl 1
Manual training
Script for inference
No real prod
lvl 2
Manual training
Prod pipeline
Fixed
lvl 3
Training pipeline
Prod pipeline
Distributed
Celery
MRQ
Python RQ