cleanlab / cleanlab/cleanvision
In-memory statistics calculation
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 83
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
Do you support in-memory computation of statistics, or are you planning to add such a feature?
# Details
I'm missing the possibility to obtain statistics like the ones returned by `imagelab.get_stats()` for an image that is not stored in a filesystem, but rather is kept in memory.
Let's say I have a vision model deployed and it receives an image for inference via a REST API. The image is a numpy array or a PIL Image. I'd like to be able to obtain the statistics for it before passing it to the model for inference. A working solution I came up with is saving the image to a tempdir and calling cleanvision on it, but this unsurprisingly is very slow.
In case you are not planning on developing such a feature, could you please advise on a faster workaround than using tempdir? Thanks!
Contributor guide
Research direction
Start by reading the existing imagelab.get_stats() entry point and tracing how it accepts filesystem images. Compare the expected inputs with the numpy array and PIL Image described here; done would mean obtaining equivalent statistics for an in-memory image without using a temporary directory. No files or tests are named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- computer-vision
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100