-
Notifications
You must be signed in to change notification settings - Fork 730
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
[SOLVED] How to Implement DSFD on Windows, Mac, and Linux #79
Comments
Thank you so much david, however I faced anouther error too. Can you have any solution about it? test_oneimage()
File "/home/berkanttugberk/GithubProjects/FaceDetection-DSFD/demo.py", line 190, in test_oneimage
det0 = infer(net , img , transform , thresh , cuda , shrink)
File "/home/berkanttugberk/GithubProjects/FaceDetection-DSFD/demo.py", line 71, in infer
y = net(x) # forward pass
File "/home/berkanttugberk/miniconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 727, in _call
_impl
result = self.forward(*input, **kwargs)
TypeError: forward() missing 1 required positional argument: 'x' |
Hi-there @berkanttubi. Is that the entire error message? |
|
@berkanttubi You will need to make the changes that are covered in the article to prevent these errors. |
@david-littlefield I did :) |
The first step in the "Fix the Errors" section should solve this problem. Can you send a screenshot of your code from the stated files at the stated lines of code? |
@david-littlefield I think the problem was about the torch version. When I downgraded it, the code worked. Thank you so much for your article David. I couldn't do it without your instructions. But I have another question, |
@berkanttubi Good. Glad you were able to get it working! I've only used DSFD with single images, but I vaguely remember the paper stating something about the model not being fast enough to handle live video. What kind of GPU are you using? |
im getting the following error i dont know what to do |
Here's an article I wrote that shows how to get the demo working on Windows, Mac, and Linux
The text was updated successfully, but these errors were encountered: