Open soumik12345 opened 1 year ago
Hi @soumik12345, can I work on this issue?
I figured out that the class WandBImageClassificationCallback
exists in the wandb_addons\keras\image_classification.py
,
and to work with both channels-first and channels-last image formats, we need to ensure that the image tensor is correctly formatted before logging it to WandB.
@mratanusarkar Thanks for your interest. Please feel free to raise a PR.
@mratanusarkar Here are 2 examples to aid your testing:
@soumik12345 thanks!
@soumik12345 regarding the channels-first notebook you shared,
from keras_core.utils import TorchModuleWrapper
throws the following error:
ImportError: cannot import name 'TorchModuleWrapper' from 'keras_core.utils' (/usr/local/lib/python3.10/dist-packages/keras_core/utils/__init__.py)
Which was resolved with from keras_core.layers import TorchModuleWrapper
as per your suggestion.
WandBImageClassificationCallback
hence I am unable to test out the channels-first usecase.Could you please share me a notebook with channels_first
image data using the WandBImageClassificationCallback
?
It would be of great help. thanks!
- Use this example to test for the channels-first pipeline.
@soumik12345 I am unable to test the channels-first
pipeline.
I feel WandBImageClassificationCallback
callback is designed to work with TensorFlow datasets (tf.data.Dataset
) or NumPy arrays (np.array
). And not with the PyTorch's DataLoader.
I believe this could be a good feature request. As per the current issue, please help me with how I should proceed and close the PR.
Request from Ian Stenbit to make the
WandBImageClassificationCallback
work with both channels-first and channels-last image formats.