---
title: "open"
sidebar_label: "open"
description: "Kotlin binding reference: open."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../../index.md)/[io.clika.modelverse](../../index.md)/[VisionModel](../index.md)/[Companion](index.md)/[open](open.md)

# open

[common]\
fun [open](open.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), options: [VisionLoadOptions](../../VisionLoadOptions/index.md) = VisionLoadOptions()): [VisionModel](../index.md)

Load a vision model from [path](open.md), a snapshot directory, on the CPU: the library reads the checkpoint's family and opens the door that family serves (detection, depth, text reading, embedding). Blocks for the load; call it off the main thread.

#### Throws

| | |
|---|---|
| [ModelverseException](../../ModelverseException/index.md) | when no vision family of the library claims the files, the family's task has no door in this release, or the load fails, named in the message. |