# Single-Label Classification Model

### 이 블록에 관하여

Single-Label Classification Model 블록을 사용하면 Roboflow에 학습되었거나 업로드된 단일 레이블 분류 모델을 실행할 수 있습니다.

단일 레이블 분류 모델은 이미지에 대한 카테고리를 반환합니다. 예를 들어, 이 블록을 다음과 같이 사용할 수 있습니다:

1. 이미지에 어떤 결함이 있는지 식별하기
2. 이미지를 하나 이상의 카테고리로 분류하기
3. 이미지에서 제품 유형 식별하기

Workspace에 저장된 비공개 모델이나 Roboflow Universe의 공개 모델을 실행할 수 있습니다.

<figure><img src="/files/776959d9b8b98985f13c137499a6baae1ef9cf39" alt=""><figcaption><p>Single-Label Classification Model 블록.</p></figcaption></figure>

### 이 블록에 보낼 수 있는 내용

Object Detection Model 블록은 다음에 대해 실행할 수 있습니다:

1. Workflow로 전송한 이미지
2. Workflow로 전송한 비디오 프레임
3. Workflow에서 계산된 이미지의 잘라낸 영역(즉, Crop 블록 사용)

### 이 블록이 반환하는 내용

Single-Label Classification Model 블록은 모델이 이미지의 내용을 가장 잘 나타낸다고 판단한 클래스를 반환합니다. 또한 모델이 결과에 대해 얼마나 확신하는지 보여주는 confidence 값도 반환합니다.

분류 모델의 결과를 이미지 위에 표시하려면 Visualizer 블록을 사용해야 합니다. 다음을 사용해 볼 수 있습니다:

* Classification Label Visualization 블록: 분류 모델의 레이블을 이미지에 표시합니다.

다음은 Classification label Visualization을 사용한 단일 레이블 분류 모델의 결과를 보여주는 예시입니다:

<figure><img src="/files/ab61895d57161b594f054f476ede1b001565ae1b" alt=""><figcaption><p>레이블 "loose-straw"가 이미지의 왼쪽 상단 모서리에 나타납니다.</p></figcaption></figure>

### 블록 구성 방법

이 블록을 설정하면 Workspace에서 모델을 선택하라는 요청을 받게 됩니다:

<figure><img src="/files/db3fdbb725f991b5da96c288425cd893f1b291cd" alt=""><figcaption></figcaption></figure>

Workspace에서 모델을 사용하려면 Your Models 목록에서 선택하세요.

Universe에서 찾을 수 있는 어떤 모델의 ID도 지정할 수 있습니다. [Universe에서 모델을 찾는 방법을 알아보세요.](/roboflow/roboflow-ko/universe/find-a-model-on-universe.md)

Universe 모델을 사용하려면 Public Models 탭으로 이동한 다음, 사용하려는 모델의 Universe Model ID를 붙여넣으세요.

그런 다음 Workflows editor에서 사용할 수 있는 옵션을 통해 블록을 구성할 수 있습니다.

### 사용 사례

이 블록은 분류 모델을 실행하는 모든 Workflow에 유용합니다.

제로샷 분류 모델이 필요하다면 CLIP을 사용하거나 Claude 같은 멀티모달 모델을 시도해 볼 수 있습니다.

### 예측 형식

아래 카드를 펼쳐 이 블록이 반환하는 JSON 데이터를 확인하세요.

<details>

<summary>예측 형식</summary>

예측은 다음 형식으로 반환됩니다:

```json
[
    "model_predictions": {
      "inference_id": "866010bb-e432-4b9c-9b95-35d87f0ffafa",
      "time": 0.28171608800039394,
      "image": {
        "width": 960,
        "height": 1280
      },
      "predictions": [
        {
          "class": "loose-straw",
          "class_id": 4,
          "confidence": 0.5229
        }
      ],
      "top": "loose-straw",
      "confidence": 0.5229,
      "prediction_type": "classification",
      "parent_id": "image",
      "root_parent_id": "image"
    }
  }
]
```

</details>


---

# Agent Instructions: 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-ko/workflows/workflow-blocks/run-a-model/single-label-classification-model.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.
