tfaehse / DashcamCleaner

Censor identifiable information in videos, in particular dashcam recordings in Germany.
GNU Affero General Public License v3.0
134 stars 27 forks source link

not blurring faces #11

Closed joshinils closed 2 years ago

joshinils commented 2 years ago

i screen recorded a clip starting from https://youtu.be/EfdmAuB7JzU?t=296 and cut it down to one second. i have an amd gpu, so cuda does not work for me, cpu time for that one second clip was 3minutes 8sec.

none of the faces are blurred in the output clip. i used the 1080p_medium_rect weights and inference_size 1080 roi_multi of 1 quality of 10 threshold of 1 blur_size of 10 frame_memory of 1

tfaehse commented 2 years ago

That's regrettable. I've just tested this, for now just a few notes:

For now, using _mosaic weights should yield better results. Long-term I'll hopefully be able to publish much better trained networks. I'll have a look at your PR and the other issue soon (I promise!), I'm unfortunately fairly busy at the moment.

edit: if you're looking to blur clips and only care about faces, that's a much simpler problem. There are some really nice, labelled datasets for facial recognition, in theory you can just train those with YOLOv5, name the face class "face" and drop them into the weights folder.

joshinils commented 2 years ago

hm, so you're saying I need different weights from somewhere?

I just did another test, footage from my bicycle driving past parked cars. none of the (german) licence plates are blurred for any of the 8 weights files /(1080p|720p)(small|medium)(mosaic|rect).pt/

tfaehse commented 2 years ago

Could you send me a snippet of such a recording? I'm not saying results should be perfect, but I've tried lots of different input data by now and nothing at all sounds strange. If you don't want to post such videos publicly feel free to message me privately, you can reach me at my git user at me or gmail dot com. I'll have a look!

joshinils commented 2 years ago

problem was my python packages and maybe using a threshold of 1