FaceDetection-DSFD icon indicating copy to clipboard operation
FaceDetection-DSFD copied to clipboard

Runtime error when trying demo

Open AissaGeek opened this issue 5 years ago • 4 comments

Hello, I'm trying to excute demo.py on google collab, it always gets a runtime error, i may solve this by reducing the batch size, but can you show me how ? Thank you

AissaGeek avatar Apr 23 '19 11:04 AissaGeek

Use with torch.no_grad(): to inference. You can also try my simple demo.py with original author's checkpoint https://github.com/vlad3996/FaceDetection-DSFD

vlad3996 avatar Apr 24 '19 20:04 vlad3996

@vlad3996 Can you please clarify where to put torch.no_grad in demo.py? I don't see it in your code nor do I see it in this repo's demo.py

nyck33 avatar Sep 12 '19 15:09 nyck33

in the repo's demo.py, I put it in the first line of def infer() but it didn't help.

nyck33 avatar Sep 12 '19 15:09 nyck33

has you solved your problem? i meet the runtimeError too

Liuqiyuan670 avatar Jan 29 '20 15:01 Liuqiyuan670