클래스 wandb.Image
W&B에 이미지를 로깅하는 클래스입니다.인수
ImageDataOrPathType
이미지 데이터의 NumPy 배열/pytorch 텐서,
PIL 이미지 객체 또는 이미지 파일 경로를 받습니다. NumPy
배열 또는 pytorch 텐서가 제공되면
이미지 데이터는 지정한 파일 유형으로 저장됩니다.
값은 이미 [0, 255] 범위에 있어야 합니다.
- pytorch 텐서는 (channel, height, width) 형식이어야 합니다
- NumPy 배열은 (height, width, channel) 형식이어야 합니다
str | None
이미지의 PIL 모드입니다. 가장 일반적인 값은 “L”, “RGB”, “RGBA”입니다. 자세한 내용은 전체 Pillow 문서를 참조하세요 https://pillow.readthedocs.io/en/stable/handbook/concepts.html#modes
str | None
이미지 표시에 사용할 레이블입니다.
int | None
이미지의 그룹 번호입니다.
Classes | Sequence[dict] | None
이미지의 클래스 정보 목록으로, 바운딩 박스와 이미지 마스크의 레이블 지정에 사용됩니다.
dict[str, BoundingBoxes2D] | dict[str, dict] | None
이미지의 바운딩 박스 정보가 들어 있는 딕셔너리입니다. 참조 https://docs.wandb.ai/models/ref/python/data-types/boundingboxes2d
dict[str, ImageMask] | dict[str, dict] | None
이미지의 마스크 정보가 들어 있는 딕셔너리입니다. 참조 https://docs.wandb.ai/models/ref/python/data-types/imagemask
str | None
이미지를 저장할 파일 유형입니다.
data_or_path가 이미지 파일 경로인 경우 이 매개변수는 적용되지 않습니다.속성
PILImage | None
설명이 제공되지 않았습니다.