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.

ImagePredictor fails if any row contains NaN as its image.

See original GitHub issue

ImagePredictor currently crashes if a NaN is present in a row for the image (row contains no image)

Ideally, it should either use a dummy image or predict_proba the mean of NaN rows in train during test, or otherwise predict_proba the overall mean of the training data if no NaN rows were in train. NaN rows in train can be dropped.

               'mxnet.base.MXNetError: Traceback (most recent call last):\n'
               '  File "src/io/image_io.cc", line 223\n'
               "Imread: Check failed: file.is_open(): '' couldn't open file: "
               'No such file or directory\n',

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
sxjsciencecommented, Jun 24, 2021

@gradientsky Thanks for the suggestion! How do you usually determine the most frequent image? I can think of two algorithms:

    1. Measure the checksum of all images and randomly pick one from those that have the highest counts.
    1. Extract embeddings from these images via ResNet50 and build the cluster with K-means. After that, we can pick the image that are closest to the center of the largest cluster.
0reactions
gradientskycommented, Jun 24, 2021

Another option for ensembles: get oof predictions from non-image models, then fill with random image from the same class.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] Tabular + images for regression? · Issue #1546 - GitHub
Another question, if I understand right, the image predictor model for tabular prediction includes only image as input feature, ...
Read more >
Ignoring NaNs with str.contains - python - Stack Overflow
3. Over here I had a situation where a was populated from a CSV, and the a column contained the string "nan". ·...
Read more >
Built-in Macro Functions - ImageJ
Creates a new lookup table and assigns it to the current image. Three input arrays are required, each containing 256 intensity values. cos(angle)...
Read more >
AutoGluon Predictors
AutoGluon TextPredictor predicts values in a column of a tabular dataset that contains text fields (classification or regression).
Read more >
Built-in Macro Functions
Use the fromCharCode() function to convert one or more Unicode characters to a string. close() Closes the active image. This function has the...
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