-
Notifications
You must be signed in to change notification settings - Fork 62
Support more content types for the NSFWProtector #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
||
/** | ||
* Extract the first frame from a video or image source. | ||
* @param ffmpegPath The path to the `ffmpeg` binary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it pull from somewhere in the first third-middle? Just wondering if always pulling from first frame will be easily evaded.
LogService.warn("NsfwProtection", `No content type header specified`); | ||
return null; | ||
} | ||
console.log(contentType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if this is a stray from debugging :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome, just had one question. Otherwise I would love to see a test or two of new functionality but am not going to gate approval behind that :)
@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. |
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. |
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: