메인 콘텐츠로 건너뛰기

View the source code

W&B에 로깅하기 위한 이미지 형식입니다.
참고 : torch.Tensorwandb.Image로 로깅할 때 이미지는 정규화됩니다. 이미지를 정규화하지 않으려면 텐서를 PIL Image로 변환하십시오.

예시:

numpy array에서 wandb.Image 생성

PILImage에서 wandb.Image 생성

.png (기본값) 대신 .jpg 로깅

Methods

all_boxes

View source

all_captions

View source

all_masks

View source

guess_mode

View source
np.array가 나타내는 이미지 유형을 추측합니다.

to_uint8

View source
이미지 데이터를 uint8로 변환합니다. [0,1] 범위의 부동 소수점 이미지와 [0,255] 범위의 정수 이미지를 uint8로 변환하고 필요한 경우 클리핑합니다.