Import model
Overview
Registers a model trained in Supervisely as an OvalBee model asset.
The node pulls the checkpoint from Supervisely Team Files and reads the experiment files next to it, so the framework, task type, and class names come across without you retyping them.
Prerequisites
How it works
Reads experiment_info.json from the experiment folder, two levels above the checkpoint path, and stops there when it names no model, framework or task type — nothing is downloaded.
Collects the class names from model_meta.json, and fails when it names none — the checkpoint is never opened to make up for a missing list.
FAQ
Which path goes into Checkpoint Path?
The full Team Files path of the checkpoint, for example /experiments/12_animals/checkpoints/best.pth. The experiment folder is taken two levels above that path, so a checkpoint stored anywhere else means the experiment files are not found.
Where do the class names come from?
Two sources, in order: model_meta.json in the experiment folder, then the path experiment_info.json points at. The run fails when neither yields class names: a model without classes cannot be applied, and reading them out of the checkpoint would mean loading a file that runs code.
What happens when experiment_info.json is missing?
The run fails: the framework, task type and model name are what the model is registered under, and none of them can be guessed from a checkpoint file. Export the experiment from Supervisely with its info file.
Which framework and task type does the model end up with?
OvalBee’s own keys, not Supervisely’s wording: YOLOv8 is registered as yolo and object detection as object_detection, because the model pickers of the predict, train and export nodes match those keys exactly. A task Supervisely trains but OvalBee has no node for, such as pose estimation, fails the run instead of being imported unusable.
Which files end up in the model asset?
The checkpoint, marked as the one to load, plus experiment_info.json when it exists and the training config when one of training_config.yaml, model_config.yml, or custom_config.yml is found next to it. A .safetensors checkpoint with a config.json beside it is stored as a model version, config.json and model.safetensors.
Can I import several checkpoints from one experiment?
Run the node once per checkpoint. Each run imports the single file named in Checkpoint Path and registers it as its own model asset.
How do I tell imported models apart later?
An imported model is marked imported in the registry, and the version records the Supervisely path it came from next to the framework, task type and model name that were detected.
Is the checkpoint opened during the import?
No. Loading a .pth file runs the code inside it, so the import stores what it downloaded and takes everything it records from the experiment’s own files. The node that later loads the version is where the file is judged: with the safe-weights policy on it accepts only safetensors and ONNX, and a pickle is converted first.
Inputs
Your Supervisely server address and API token, stored as a secret. Allowed credential types: supervisely. Key: SLY_SECRET.
Supervisely team whose Team Files hold the checkpoint, as a numeric ID. Key: SLY_TEAM_ID.
Path to the checkpoint file in Supervisely Team Files (e.g. /experiments/…/checkpoints/best.pth). The experiment directory is inferred automatically. A .safetensors checkpoint with a config.json beside it is imported with that config. Key: CKPT_PATH.
Outputs
Reference to the registry version created for the imported checkpoint, as <model id>@<version id>. It wires into the Model input of a predict, serve or evaluate node and pins it to exactly these weights, and the nodes that take a checkpoint asset - Export, Apply model - accept it too. Shown as an artifact. Key: MODEL.
JSON config
Machine-readable node interface for automation and advanced usage.