View the source code
Args | Description |
---|---|
data_or_path | (numpy array, string, io) 画像データの numpy 配列または PIL 画像を受け付けます。クラスはデータフォーマットを推測して変換します。 |
mode | (string) 画像のための PIL モード。最も一般的なのは “L”, “RGB”, “RGBA” です。詳しくは https://pillow.readthedocs.io/en/stable/handbook/concepts.html#modes を参照してください。 |
caption | (string) 画像表示用のラベル。 |
wandb.Image
として torch.Tensor
をログする際、画像は正規化されます。画像を正規化したくない場合は、テンソルを PIL Image に変換してください。
例:
numpy 配列から wandb.Image を作成
PILImage から wandb.Image を作成
.png (デフォルト) ではなく .jpg をログ
Attributes | Description |
---|
メソッド
all_boxes
View source
all_captions
View source
all_masks
View source
guess_mode
View source
to_uint8
View source
クラス変数 | Description |
---|---|
MAX_DIMENSION | 65500 |
MAX_ITEMS | 108 |