Documentation Index
Fetch the complete documentation index at: https://translations.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
W&B의 데이터 타입은 실행에 로깅할 수 있도록 미디어와 구조화된 데이터를 감싸는 클래스입니다. 이 클래스들은 W&B UI의 시각화 구성 요소를 포함하며, 데이터의 직렬화, 저장 및 조회를 처리합니다.
| 데이터 타입 | 설명 |
|---|
Image | 마스크, 바운딩 박스, 세그멘테이션을 지원하여 이미지를 로깅합니다. |
Video | 모델 출력이나 데이터셋 샘플에 대한 비디오 데이터를 추적합니다. |
Audio | 오디오 처리 작업을 위한 오디오 샘플을 로깅합니다. |
Table | 여러 미디어 타입을 혼합해 포함할 수 있는 테이블을 생성합니다. |
Plotly | 데이터 시각화를 위한 Plotly 차트를 로깅합니다. |
Html | 사용자 정의 HTML 콘텐츠를 임베드합니다. |
Object3D | 3D 포인트 클라우드와 메시를 시각화합니다. |
Molecule | 계산화학을 위한 분자 구조를 로깅합니다. |
다음 예제에서는 Image를 사용합니다:
import wandb
import matplotlib.pyplot as plt
# 데모 목적으로 이미지 생성
path_to_img = "/path/to/cafe.png"
im = plt.imread(path_to_img)
# 새 실행 초기화
with wandb.init(project="awesome-project") as run:
# 이미지 로깅
run.log({"img": [wandb.Image(im, caption="Cafe")]})
이 예제에서는 Table을 사용해 텍스트와 레이블이 혼합된 테이블을 로깅합니다:
import wandb
# 새 실행 초기화
with wandb.init(project="visualize-predictions", name="tables") as run:
# 리스트의 리스트를 사용하여 표 형식 데이터 생성
data = [["Cat", "1", "1"],["Dog", "0", "-1"]]
run.log({"Table 1": wandb.Table(data=data, columns=["Text", "Predicted Label", "True Label"])})
# `wandb.Table.add_data()` 메서드를 사용하여 표 형식 데이터 생성
table = wandb.Table(columns=["Text", "Predicted Label", "True Label"])
table.add_data("Cat", "1", "1")
table.add_data("Dog", "0", "-1")
run.log({"Table 2": table})