Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,222 changes: 1,222 additions & 0 deletions docs/pre_executed/goal_lsdb_style_api_infer.ipynb

Large diffs are not rendered by default.

Empty file.
19 changes: 19 additions & 0 deletions docs/pre_executed/loopback_weights/prepare_inputs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@staticmethod
def prepare_inputs(data_dict) -> tuple:
"""This function converts structured data to the input tensor we need to run

Parameters
----------
data_dict : dict
The dictionary returned from our data source
"""
# Necessary for e2e tests to pass since this function ends up written out as a file and
# must stand alone from imports when loaded for inference
import numpy as np # noqa: F811

data = data_dict.get("data", {})

image = data.get("ra_obj", np.ndarray([]))

# make sure that image dtype is float32
return image.astype(np.float32)
Loading
Loading