学習ジョブを停止またはキャンセル
学習を途中で停止してモデルを保存するか、学習をキャンセルして重みを破棄します。
トレーニングジョブは完了前に終了できます。現在のモデル重みを保存するには早期停止します。重みを破棄するにはトレーニングをキャンセルします。
次の場合に使用
モデルが収束している、またはすでに目標を満たしている。
トレーニングジョブからモデルを残したくない。
モデル重み
保存済み
破棄済み
クレジット
使用したクレジット分を支払います。
ジョブの早い段階でキャンセルした場合は返金されることがあります。多くのエポックが経過した後は返金されません。
どちらの操作の後でも、同じデータセットバージョンで別のトレーニングジョブを開始できます。
または、 クレジット上限 ジョブ開始時に設定すると、クレジット上限に達した時点で自動的に停止します。上限による停止ではモデル重みは保持されます。
Webアプリ
トレーニングを早期停止
トレーニンググラフでモデルが収束している、またはすでに目標を満たしていることが示されている一方で、まだ多くのエポックが残っている場合に早期停止を使用します。
「トレーニングを早期停止」をクリックします:

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

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

ニューラルアーキテクチャサーチ(NAS)では、モデルが収束するとトレーニングが自動的に停止する場合があります。Roboflow が残りのエポックをスキップすると、トレーニング結果ページにメッセージが表示されます。
トレーニングを継続
早期停止したジョブは、最後に保存されたチェックポイントからさらにエポックを実行できます。トレーニングを開いて「トレーニングを継続」をクリックします。このオプションは RF-DETR と YOLO モデルで利用できます。
Roboflow は実行終了後、チェックポイントを数日間保持します。ボタンのツールチップには、トレーニングを再開できる期限日が表示されます。チェックポイントの期限が切れるとボタンは無効になり、代わりに新しいトレーニングジョブを開始します。
トレーニングをキャンセル
「トレーニングをキャンセル」をクリックすると、ジョブを停止してモデル重みを破棄します:

HTTP API
呼び出し元の API キーには training-job:create スコープが必要です。
version エンドポイントは、その version の唯一の training に対して動作します。ある version に複数の training がある場合、返されるのは 409です。代わりに training エンドポイントを使用し、 trainingId から トレーニング一覧.
トレーニングを早期停止
トレーニングに停止して重みを保持するよう要求します。ジョブは重みを保存し、現在のエポックの終了時に終了するため、モデルは数分後に表示されます。
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.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Dataset version number.
Successful response.
True when the stop request was recorded.
The request is invalid.
Authentication is missing or invalid.
The credential does not have access to this resource.
The version has no training to stop.
The version has more than one training (error.code MULTIPLE_TRAININGS), or the training is not running (error.code CANNOT_STOP). For a version with several trainings, use the v2 endpoint and pass trainingId.
The request rate is too high.
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 返金なしでキャンセルします。
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.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Dataset version number.
Send true to cancel a job that has run for 30 minutes or more, which gives no refund.
falseSuccessful response.
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.
True when outcome is cancelled.
True when the training's credits were refunded.
True when the running job was shut down.
True when the job had already ended.
Final training status. Present when outcome is superseded.
The request is invalid.
Authentication is missing or invalid.
The credential does not have access to this resource.
The version has no training to cancel.
The version has more than one training (error.code MULTIPLE_TRAININGS), or the training is not running (error.code CANNOT_CANCEL). For a version with several trainings, use the v2 endpoint and pass trainingId.
The request rate is too high.
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 でトレーニングを停止
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.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Dataset version number.
Training to stop. Leave it out when the version has only one training.
Successful response.
True when the stop request was recorded.
The request is invalid.
Authentication is missing or invalid.
The credential does not have access to this resource.
No training with that trainingId on this version (error.code TRAINING_NOT_FOUND), or the version has no training (error.code NO_TRAINING).
trainingId was left out and the version has more than one training (error.code MULTIPLE_TRAININGS), or the training is not running (error.code CANNOT_STOP).
The request rate is too high.
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 でトレーニングをキャンセル
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.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Dataset version number.
Training to cancel. Leave it out when the version has only one training.
Send true to cancel a job that has run for 30 minutes or more, which gives no refund.
falseSuccessful response.
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.
True when outcome is cancelled.
True when the training's credits were refunded.
True when the running job was shut down.
True when the job had already ended.
Final training status. Present when outcome is superseded.
The request is invalid.
Authentication is missing or invalid.
The credential does not have access to this resource.
No training with that trainingId on this version (error.code TRAINING_NOT_FOUND), or the version has no training (error.code NO_TRAINING).
trainingId was left out and the version has more than one training (error.code MULTIPLE_TRAININGS), or the training is not running (error.code CANNOT_CANCEL).
The request rate is too high.
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
トレーニングのステータス、生成されたモデル、メトリクスを取得します。
最終更新
役に立ちましたか?