Skip to content
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

TypeError: forward() missing 1 required positional argument: 'prior_data'? #7

Open
liyaowei-stu opened this issue Jun 6, 2021 · 0 comments

Comments

@liyaowei-stu
Copy link

liyaowei-stu commented Jun 6, 2021

Error code:
output = self.detect(
face_loc.view(face_loc.size(0), -1, 4), # loc preds
self.softmax(face_conf.view(face_conf.size(0), -1, self.num_classes)), # conf preds
self.priors.type(type(x.data)) # default boxes
)

Error message:
Traceback (most recent call last):
File "C:/Users/JUICE/Desktop/lightDSFD/test.py", line 215, in
light_test_oneimage()
File "C:/Users/JUICE/Desktop/lightDSFD/test.py", line 180, in light_test_oneimage
det = infer(net , img , transform , thresh , cuda , shrink)
File "C:/Users/JUICE/Desktop/lightDSFD/test.py", line 99, in infer
y = net(x) # forward pass
File "D:\ProgramData\Anaconda\envs\pytorch12\lib\site-packages\torch\nn\modules\module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "C:\Users\JUICE\Desktop\lightDSFD\light_face_ssd.py", line 334, in forward
self.priors.type(type(x.data)) # default boxes
TypeError: forward() missing 1 required positional argument: 'prior_data'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant