> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/roboflow/roboflow-jp/deploy/download-roboflow-model-weights.md).

# Model Weights をダウンロード

### Roboflow Inference を介した自動ダウンロード（推奨）

[Roboflow Inference](https://inference.roboflow.com/) は、CPU および GPU デバイス上でローカルにモデルを実行するための、オープンソースでスケーラブルなシステムです。

**これは、最も速く、最も信頼性の高い開始方法です**。Inference を使用すると、ファイルやバージョニングを管理する必要はありません。Roboflow Inference は、コードを初めて実行したときにモデルの重みを自動的に取得してキャッシュします。

* **仕組み**：最初の推論リクエスト時に、重みが Roboflow のサーバーからダウンロードされ、ローカルに保存されます。以降の予測はすべてこのローカルキャッシュを使用し、画像がクラウドに送信されることはありません。
* **デプロイオプション**:
  * [Workflows](/roboflow/roboflow-jp/workflows/deploy-a-workflow.md)：本番環境対応のマルチステップのコンピュータビジョンワークフロー向け
  * [Python inference SDK](https://inference.roboflow.com/quickstart/run_a_model/)：Python との統合向け

### モデルの重みの手動ダウンロード

場合によっては、生の重みファイル（例：PyTorch `.pt` ファイル）が、カスタム Android 実装など Roboflow がまだネイティブにサポートしていないデバイスで実行するために必要になることがあります。

詳細は [Supported Models table](/roboflow/roboflow-jp/deploy/supported-models.md) 重みのダウンロード互換性のため。

{% hint style="warning" %}
**プレミアム機能**：手動での重みのダウンロードは、Core プランの有料ユーザーおよび一部の Enterprise 顧客のみ利用できます。詳細は当社の [料金ページ](https://roboflow.com/pricing).
{% endhint %}

#### 方法 A：Roboflow Platform

Project 内の Model version に移動します。ご利用のプランで許可されている場合は、「Download Weights」ボタンをクリックすると重みをダウンロードできます。これにより、組み込みデバイスで使用するために変換できるファイルが提供されます。

<figure><img src="/files/321d5f631b8978ef17c753facbcb1c3db186256b" alt="Download Weights button"><figcaption></figcaption></figure>

#### 方法 B：Python SDK

Roboflow Python パッケージを使って、重みをディレクトリに直接ダウンロードすることもできます：

```python
import roboflow

rf = roboflow.Roboflow(api_key="YOUR_API_KEY")
model = rf.workspace().project("PROJECT_ID").version("1").model
model.download() # 'weights.pt' をローカルフォルダにダウンロードします
```

**注**：Roboflow は、Roboflow Inference エコシステム外で使用されるモデルの重みに対して技術サポートを提供していません。最適な体験のために、セクション 1 で説明した Inference の方法を使用することをおすすめします。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/roboflow/roboflow-jp/deploy/download-roboflow-model-weights.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
