mjolnir icon indicating copy to clipboard operation
mjolnir copied to clipboard

Support more content types for the NSFWProtector

Open Half-Shot opened this issue 9 months ago • 2 comments

In order to work around the limitations of tensorflow's models, this PR transcodes anything that might look like an image or video into something we can then pass through the model.

Tested and working.

The list of improvements are:

  • Non-standard image types and video types are now thumbnailed.
  • We cache the result of the last classification so repeat media are quickly deleted.
  • Models have been updated.
  • It's possible to specify the model you'd like to run with in the config.

Half-Shot avatar Mar 25 '25 15:03 Half-Shot

@Half-Shot just curious about the status on this? I think we can probably merge it but I've lost context and want to make sure there's nothing I am forgetting.

H-Shay avatar Jun 12 '25 23:06 H-Shay

Hey @H-Shay, I'm mostly happy with this but I want to do more testing before we merge. I can take a look this afternoon.

Half-Shot avatar Jun 13 '25 08:06 Half-Shot