View the source code
ARG | Description |
---|---|
data_or_path | (numpy array, string, io) 이미지 데이터의 numpy array 또는 PIL 이미지를 허용합니다. 클래스는 데이터 형식을 추론하고 변환을 시도합니다. |
mode | (string) 이미지의 PIL 모드입니다. 가장 일반적인 것은 “L”, “RGB”, “RGBA”입니다. 자세한 설명은 https://pillow.readthedocs.io/en/stable/handbook/concepts.html#modes 를 참조하세요. |
caption | (string) 이미지 표시를 위한 레이블입니다. |
torch.Tensor
를 wandb.Image
로 로깅할 때 이미지는 정규화됩니다. 이미지를 정규화하지 않으려면 텐서를 PIL Image로 변환하십시오.
예시:
numpy array에서 wandb.Image 생성
PILImage에서 wandb.Image 생성
.png (기본값) 대신 .jpg 로깅
속성 | Description |
---|
Methods
all_boxes
View source
all_captions
View source
all_masks
View source
guess_mode
View source
to_uint8
View source
클래스 변수 | |
---|---|
MAX_DIMENSION | 65500 |
MAX_ITEMS | 108 |