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

Issue running test.py #25

Open
nahidalam opened this issue Jul 1, 2021 · 1 comment
Open

Issue running test.py #25

nahidalam opened this issue Jul 1, 2021 · 1 comment

Comments

@nahidalam
Copy link

Python version 3.6
Pytorch version 1.4

I downloaded the pre-trained models and running test.py

python test.py

But getting the below error

Traceback (most recent call last):
  File "test.py", line 84, in <module>
    output_img, rec_img = sr_forward(img)
  File "test.py", line 73, in sr_forward
    img_aligned, M = dlib_detect_face(img, padding=padding, image_size=(128, 128), moving=moving)
  File "/home/ec2-user/mydir/Face-Super-Resolution/dlib_alignment.py", line 68, in dlib_detect_face
    dets = dlib_detector(img, 0)
TypeError: __call__(): incompatible function arguments. The following argument types are supported:
    1. (self: _dlib_pybind11.fhog_object_detector, image: array, upsample_num_times: int=0) -> _dlib_pybind11.rectangles

Invoked with: <_dlib_pybind11.fhog_object_detector object at 0x7fd51a70d5e0>, None, 0

Please suggest.

@mjforan
Copy link

mjforan commented Apr 29, 2022

You have to change the input image path in test.py

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

2 participants