Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Application(panoramasdk.node):
# ...
def process_media(self, stream):
image_data, ratio = self.preprocess(stream.image, self.MODEL_INPUT_SIZE)
inference_results = self.call(
{self.MODEL_INPUT_NAME: image_data}, self.MODEL_NODE
)
self.process_results(inference_results, stream, ratio)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment