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

some problems about the arg #25

Open
chunhuaqiushi1989 opened this issue Apr 24, 2020 · 0 comments
Open

some problems about the arg #25

chunhuaqiushi1989 opened this issue Apr 24, 2020 · 0 comments

Comments

@chunhuaqiushi1989
Copy link

hello:
i tried many times such as:
python inference.py test_sample/test_market.jpg --dataset market
python3 inference.py test_sample/test_market.jpg
python inference.py test_sample/test_market.jpg market resnet50

and so on ,but i got the same mistakes

the_type = try_ann_to_type(ann, loc)

File "/usr/local/lib/python3.5/dist-packages/torch/jit/annotations.py", line 296, in try_ann_to_type
the_type = torch._C._resolve_type_from_object(ann, loc, fake_rcb)
TypeError: _resolve_type_from_object(): incompatible function arguments. The following argument types are supported:
1. (arg0: object, arg1: torch._C._jit_tree_views.SourceRange, arg2: Callable[[str], function]) -> torch._C.Type

Invoked with: typing.Union[int, NoneType], None, <function try_ann_to_type..fake_rcb at 0x7fba307cd048>

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