question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fastai WandbCallback with multilabel datasets

See original GitHub issue
  • Weights and Biases version: 0.8.9
  • Python version: 3.6.9
  • Operating System: Linux-4.14.133-88.112.amzn1.x86_64-x86_64-with-Ubuntu-16.04-xenial

Description

I’m trying to see prediction samples for fastai image classification, where the images are multilabel. I’d like it to be ran on the validation data at the end of each epoch and to see captions of ground truth/predictions.

When I use a multilabel dataset, instead of ground truth/prediction captions for each image, I get a three copies of each image side by side, where each is labeled, “Input data”, “Prediction”, “Ground Truth” (but not the actual categories)

What I Did

callback_fns += [partial(WandbCallback, input_type='images', monitor='acc_thresholded')]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
austinmwcommented, Sep 26, 2019

@borisdayma Yes that’s the output shape. It’s difficult for me to create a minimum reproducible example, because my code is currently completely intertwined with aws sagemaker. However, a good example of an almost identical problem (fastai, cnn, multilabel) is fastai’s course v3 part 1 lesson 3 example using the planets dataset: https://nbviewer.jupyter.org/github/fastai/course-v3/blob/master/nbs/dl1/lesson3-planet.ipynb I think if it works with that it should work with mine as well.

1reaction
borisdaymacommented, Sep 26, 2019

Sorry I had a typo. What is the shape of output tensor? Is it (batch_size, 4) with each value representing probability of a class?

A simple example may make it easier to debug if possible. Maybe you are even adapting one of fastai notebooks that I can look at?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fastai WandbCallback with multilabel datasets · Issue #519 · wandb ...
I'm trying to see prediction samples for fastai image classification, where the images are multilabel. I'd like it to be ran on the...
Read more >
Balancing multi-label data in fastai
Hey, fastai users, what techniques are you currently using to balance multi-label data? I've currently been doing manual majority ...
Read more >
WandbCallback: WandbCallback in fastai: Interface to 'fastai' - Rdrr.io
name of logged dataset (default to folder name). valid_dl. DataLoaders containing items used for prediction samples (default to random items from learn.dls.
Read more >
[RFCX] FastAI Localized ResNet34 TP Train - Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data from multiple data sources.
Read more >
Leveraging Pre-Trained Models for Image Classification
We can directly grab this dataset from fastai. ... Here the task is a multi-label classification problem, where each image can belong to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found