For the complete documentation index, see llms.txt. This page is also available as Markdown.

学習ジョブを停止またはキャンセル

学習を途中で停止してモデルを保存するか、学習をキャンセルして重みを破棄します。

トレーニングジョブは完了前に終了できます。現在のモデル重みを保存するには早期停止します。重みを破棄するにはトレーニングをキャンセルします。

トレーニングを早期停止
トレーニングをキャンセル

次の場合に使用

モデルが収束している、またはすでに目標を満たしている。

トレーニングジョブからモデルを残したくない。

モデル重み

保存済み

破棄済み

クレジット

使用したクレジット分を支払います。

ジョブの早い段階でキャンセルした場合は返金されることがあります。多くのエポックが経過した後は返金されません。

どちらの操作の後でも、同じデータセットバージョンで別のトレーニングジョブを開始できます。

または、 クレジット上限 ジョブ開始時に設定すると、クレジット上限に達した時点で自動的に停止します。上限による停止ではモデル重みは保持されます。

停止は協調的です。ジョブは重みを保存し、現在のエポックの終了時に終了します。ジョブが停止要求に応答せずに固まった場合、Roboflow は約 8 時間後に終了します。そのジョブは停止済みではなく失敗として表示され、モデル重みは保存されず、クレジットは返金されます。ワークスペースのクレジットが不足して Roboflow がジョブを停止したものの、そのジョブが停止要求に応答しない場合も同様です。

Webアプリ

トレーニングを早期停止

トレーニンググラフでモデルが収束している、またはすでに目標を満たしていることが示されている一方で、まだ多くのエポックが残っている場合に早期停止を使用します。

「トレーニングを早期停止」をクリックします:

Roboflow は現在のモデル重みの準備を開始します。トレーニングジョブには、早期停止したことが表示されます:

モデルが利用可能になるまで数分かかる場合があります。準備ができると、モデル名の横に緑のチェックマークが表示されます:

ニューラルアーキテクチャサーチ(NAS)では、モデルが収束するとトレーニングが自動的に停止する場合があります。Roboflow が残りのエポックをスキップすると、トレーニング結果ページにメッセージが表示されます。

トレーニングを継続

早期停止したジョブは、最後に保存されたチェックポイントからさらにエポックを実行できます。トレーニングを開いて「トレーニングを継続」をクリックします。このオプションは RF-DETR と YOLO モデルで利用できます。

Roboflow は実行終了後、チェックポイントを数日間保持します。ボタンのツールチップには、トレーニングを再開できる期限日が表示されます。チェックポイントの期限が切れるとボタンは無効になり、代わりに新しいトレーニングジョブを開始します。

トレーニングをキャンセル

「トレーニングをキャンセル」をクリックすると、ジョブを停止してモデル重みを破棄します:

HTTP API

呼び出し元の API キーには training-job:create スコープが必要です。

version エンドポイントは、その version の唯一の training に対して動作します。ある version に複数の training がある場合、返されるのは 409です。代わりに training エンドポイントを使用し、 trainingId から トレーニング一覧.

トレーニングを早期停止

トレーニングに停止して重みを保持するよう要求します。ジョブは重みを保存し、現在のエポックの終了時に終了するため、モデルは数分後に表示されます。

Stop an active training job

post

Asks the version's training to stop early and keep its weights. Works only when the version has exactly one training. During a Neural Architecture Search, it stops the architecture search. Requires training-job:create.

認可
Authorizationstring必須

Roboflow API key or OAuth access token.

パスパラメータ
workspacestring必須

Workspace URL slug.

projectstring必須

Project URL slug.

versioninteger · 最小: 1必須

Dataset version number.

レスポンス
200

Successful response.

application/json
successbooleanオプション

True when the stop request was recorded.

post/{workspace}/{project}/{version}/train/stop
POST /{workspace}/{project}/{version}/train/stop HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "success": true
}

トレーニングをキャンセル

キュー中または実行中のトレーニングをキャンセルし、重みを破棄します。30 分未満しか実行されていないジョブは返金されます。より古いジョブでは、最初のリクエストで 結果: "requires_confirmation" が返り、何もキャンセルされません。次の値を付けてもう一度送信してください: continueIfNoRefund: true 返金なしでキャンセルします。

Cancel a queued training job

post

Cancels the version's training and discards its weights. Works only when the version has exactly one training. If the job has run for less than 30 minutes, cancelling refunds its credits. After that, the request cancels nothing and returns outcome requires_confirmation until you send continueIfNoRefund: true. Requires training-job:create.

認可
Authorizationstring必須

Roboflow API key or OAuth access token.

パスパラメータ
workspacestring必須

Workspace URL slug.

projectstring必須

Project URL slug.

versioninteger · 最小: 1必須

Dataset version number.

本文
continueIfNoRefundbooleanオプション

Send true to cancel a job that has run for 30 minutes or more, which gives no refund.

Default: false
レスポンス
200

Successful response.

application/json
outcomestring · enumオプション

cancelled: the training is cancelled. pending: the cancel is recorded and finishes shortly. superseded: the training ended first, and status says how. requires_confirmation: nothing was cancelled because no refund is due; send continueIfNoRefund: true to cancel anyway.

可能な値:
successbooleanオプション

True when outcome is cancelled.

refundbooleanオプション

True when the training's credits were refunded.

jobDeletedbooleanオプション

True when the running job was shut down.

jobAlreadyGonebooleanオプション

True when the job had already ended.

statusstringオプション

Final training status. Present when outcome is superseded.

post/{workspace}/{project}/{version}/train/cancel
POST /{workspace}/{project}/{version}/train/cancel HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 27

{
  "continueIfNoRefund": true
}
{
  "outcome": "cancelled",
  "success": true,
  "refund": true,
  "jobDeleted": true
}

ID でトレーニングを停止

Stop an active training run

post

Asks one training on a version to stop early and keep its weights. During a Neural Architecture Search, it stops the architecture search. Requires training-job:create.

認可
Authorizationstring必須

Roboflow API key or OAuth access token.

パスパラメータ
workspacestring必須

Workspace URL slug.

projectstring必須

Project URL slug.

versioninteger · 最小: 1必須

Dataset version number.

本文
trainingIdstringオプション

Training to stop. Leave it out when the version has only one training.

レスポンス
200

Successful response.

application/json
successbooleanオプション

True when the stop request was recorded.

post/{workspace}/{project}/{version}/v2/trainings/stop
POST /{workspace}/{project}/{version}/v2/trainings/stop HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 37

{
  "trainingId": "0a1b2c3d4e5f67890abc"
}
{
  "success": true
}

ID でトレーニングをキャンセル

Cancel a queued training run

post

Cancels one training on a version and discards its weights. If the job has run for less than 30 minutes, cancelling refunds its credits. After that, the request cancels nothing and returns outcome requires_confirmation until you send continueIfNoRefund: true. Requires training-job:create.

認可
Authorizationstring必須

Roboflow API key or OAuth access token.

パスパラメータ
workspacestring必須

Workspace URL slug.

projectstring必須

Project URL slug.

versioninteger · 最小: 1必須

Dataset version number.

本文
trainingIdstringオプション

Training to cancel. Leave it out when the version has only one training.

continueIfNoRefundbooleanオプション

Send true to cancel a job that has run for 30 minutes or more, which gives no refund.

Default: false
レスポンス
200

Successful response.

application/json
outcomestring · enumオプション

cancelled: the training is cancelled. pending: the cancel is recorded and finishes shortly. superseded: the training ended first, and status says how. requires_confirmation: nothing was cancelled because no refund is due; send continueIfNoRefund: true to cancel anyway.

可能な値:
successbooleanオプション

True when outcome is cancelled.

refundbooleanオプション

True when the training's credits were refunded.

jobDeletedbooleanオプション

True when the running job was shut down.

jobAlreadyGonebooleanオプション

True when the job had already ended.

statusstringオプション

Final training status. Present when outcome is superseded.

post/{workspace}/{project}/{version}/v2/trainings/cancel
POST /{workspace}/{project}/{version}/v2/trainings/cancel HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 63

{
  "trainingId": "0a1b2c3d4e5f67890abc",
  "continueIfNoRefund": true
}
{
  "outcome": "cancelled",
  "success": true,
  "refund": true,
  "jobDeleted": true
}

MCP サーバー

AI エージェントを MCP サーバー に接続すると、以下のツールでトレーニング実行を停止できます:

ツール
説明

trainings_stop

早期停止を要求します。実行は即時終了ではなく、現在のフェーズを完了します。

trainings_cancel

進行中のトレーニング実行をキャンセルします。

trainings_get

トレーニングのステータス、生成されたモデル、メトリクスを取得します。

最終更新

役に立ちましたか?