google / google/magika

Be Less Confident About "Guesses"

Open
#54 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
18.6k
Forks
1.2k
Avg merge
3d 12h
Merged PRs (30d)
20

Description

I'm aware that, in its present incarnation, Magika is trained on a very small subset of all possible file types, and as as result when fed types on which it has not been trained incorrect responses are to be expected - but, at present, it's throwing out some very bizarre guesses.

As a worst-case experiment, Magika was run across the root directory of a CU Amiga cover CD from 1995 - full of files definitely *not* in the training dataset, and most likely not in the test corpus either.

![image](https://github.com/google/magika/assets/1130041/47475564-258b-4e09-83d2-60ca29633772)

Here we see several "unknown" results, which are to be expected, but also several completely-incorrect guesses: Amiga INFO Icon files are misidentified as BMP images, TIFF images, and ISO 9660 ROM images(!) - despite them all being the same format.

As feeding a tool that's expecting an ISO 9660 image an Amiga icon is likely to end poorly, I'd suggest the tool needs to be less confident when encountering something outwith its training data.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.