Live data from Hacker News

Magika: AI powered fast and efficient file type identification

opensource.googleblog.com

231–240 of 262 posts

Re: Magika: AI powered fast and efficient file type identification

#231
post #33

As someone that has worked in a space that has to deal with uploaded files for the last few years, and someone who maintains a WASM libmagic Node package ( https://github.com/moshen/wasmagic ) , I have to say I really love seeing new entries into the file type detection space. Though I have to say when looking at the Node module, I don't understand why they released it. Their docs say it's slow: https://github.com/go…

> The model appears to only detect 116 file types [...] Where libmagic detects... a lot. Over 1600 last time I checked As I'm sure you know, in a lot of applications, you're preparing things for a downstream process which supports far fewer than 1600 file types. For example, a printer driver might call on file to check if an input is postscript or PDF, to choose the appropriate converter - and for any other format, j…

Surely identifying just one file type (or two, as in your example) is a much simpler task that shouldn’t rely on horribly inefficient and imprecise “AI” tools?

Re: Magika: AI powered fast and efficient file type identification

#232

Earlier quoted context omitted.

Literally just asked a question and that seems to have set you off, bud. Are you alright? Do you need to feed your LLM more data to keep it happy?

I'm always happy to stand up for folks who make things over people who want to police them. Especially when nothing wrong has happened. Maybe take a walk and get some fresh air?

I share your distaste for people whose only contribution is subtraction but suggest you lay off the sarcasm though. Trolls; don't feed. (Well done on your project BTW)

Re: Magika: AI powered fast and efficient file type identification

#233
Nice aka perfect timing.I just restored "some" files (40GB) with [1] But the filetype detection of photorec set some wrong file types.

Edit: It would be super helpful if the "suffix" could be added as output so i can move the files to the right directory [2] ;)

[1] https://www.cgsecurity.org/wiki/PhotoRec [2] https://github.com/google/magika/issues/63

Re: Magika: AI powered fast and efficient file type identification

#234

Earlier quoted context omitted.

That is a fallacy fallacy. Just because some slopes are not slippery that does not mean none of them are.

The slippery slope fallacy is: "this is a slope. you will slip down it." and is always fallacious. Always. The valid form of such an argument is: "this is a slope, and it is a slippery one , therefore, you will slip down it."

No, it isn't.

Re: Magika: AI powered fast and efficient file type identification

#235
post #227

Earlier quoted context omitted.

> or how "soft" they were. From the comment: It identified some simple HTML files (html, head, title, body, p tags and not much else ) as "MS Visual Basic source (VBA)", "ASP source (code)", and "Generic text document" where the `file` utility correctly identified all such examples as "HTML document text". That's pretty soft. Nothing "adversarial" claimed either. > Being strictly superior to a competent human is a pr…

Those are only soft to a human. I looked at a couple and I picked them correctly but I don't know what details the classifier was seeing which I was blind to. Not to say it was correct, just that we can't call them soft just because they're short and easy for a human. > The bar is the file utility. It has higher accuracy than that. You would reject it just because the failures are different even though they're less?

Yes. Unpredictable failures are significantly worse than predictable ones. If file messes up, it's because it decided a ZIP-based document was a generic ZIP file. If Magika messes up, it's entirely random. I can work around file's failure modes, especially if it's one I work with often. Magika's failure modes strike at random and are not possible to anticipate. File also bails out when it doesn't know, a very common failure mode in Magika is that it confidently returns a random answer when it wasn't trained on a file type.

Re: Magika: AI powered fast and efficient file type identification

#236

Earlier quoted context omitted.

The slippery slope fallacy is: "this is a slope. you will slip down it." and is always fallacious. Always. The valid form of such an argument is: "this is a slope, and it is a slippery one , therefore, you will slip down it."

No, it isn't.

Yeah. Yeah, it is.

Re: Magika: AI powered fast and efficient file type identification

#237

Earlier quoted context omitted.

Thanks for the feedback -- we will look into it. If you can share with us the list of URL that would be very helpful so we can reproduce - send us an email at magika-dev@google.com if that is possible. For crawling we have planned a head only model to avoid fetching the whole file but it is not ready yet -- we weren't sure what use-cases would emerge so that is good to know that such model might be useful. We mostly…

What is the MIME type of a .tar file; and what are the MIME types of the constituent concatenated files within an archive format like e.g. tar? hachoir/subfile/main.py: https://github.com/vstinner/hachoir/blob/main/hachoir/subfil... File signature: https://en.wikipedia.org/wiki/File_signature PhotoRec: https://en.wikipedia.org/wiki/PhotoRec "File Format Gallery for Kaitai Struct"; 185+ binary file format specificatio…

I’m not sure what this comment is trying to say

Re: Magika: AI powered fast and efficient file type identification

#238

Earlier quoted context omitted.

I'm always happy to stand up for folks who make things over people who want to police them. Especially when nothing wrong has happened. Maybe take a walk and get some fresh air?

I share your distaste for people whose only contribution is subtraction but suggest you lay off the sarcasm though. Trolls; don't feed. (Well done on your project BTW)

I don't see any sarcasm from me in the thread. I had serious questions. Perhaps you could point out what you see? Thanks for the supportive words about the project.

Re: Magika: AI powered fast and efficient file type identification

#239

Earlier quoted context omitted.

I share your distaste for people whose only contribution is subtraction but suggest you lay off the sarcasm though. Trolls; don't feed. (Well done on your project BTW)

I don't see any sarcasm from me in the thread. I had serious questions. Perhaps you could point out what you see? Thanks for the supportive words about the project.

Perhaps I misread "Maybe take a walk and get some fresh air?" - no worries though.

Re: Magika: AI powered fast and efficient file type identification

#240

Earlier quoted context omitted.

Literally just asked a question and that seems to have set you off, bud. Are you alright? Do you need to feed your LLM more data to keep it happy?

I'm always happy to stand up for folks who make things over people who want to police them. Especially when nothing wrong has happened. Maybe take a walk and get some fresh air?

You're so brave
Post reply on HN