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: Can't instantiate abstract class Euclidean with abstract methods get_metric, score_pairs #87

Closed
SWRDFK opened this issue Oct 12, 2019 · 1 comment

Comments

@SWRDFK
Copy link

SWRDFK commented Oct 12, 2019

Thanks for your excellent work! I met this problem when I run the file examples/softmax_loss.py.

Traceback (most recent call last):
File "softmax_loss.py", line 217, in
main(parser.parse_args())
File "softmax_loss.py", line 104, in main
metric = DistanceMetric(algorithm=args.dist_metric)
File "/home/open-reid/reid/dist_metric.py", line 13, in init
self.metric = get_metric(algorithm, *args, **kwargs)
File "/home/open-reid/reid/metric_learning/init.py", line 25, in get_metric
return __factory[algorithm](*args, **kwargs)
TypeError: Can't instantiate abstract class Euclidean with abstract methods get_metric, score_pairs

@SWRDFK SWRDFK closed this as completed Oct 15, 2019
@mxl1990
Copy link

mxl1990 commented Nov 1, 2019

Thanks for your excellent work! I met this problem when I run the file examples/softmax_loss.py.

Traceback (most recent call last):
File "softmax_loss.py", line 217, in
main(parser.parse_args())
File "softmax_loss.py", line 104, in main
metric = DistanceMetric(algorithm=args.dist_metric)
File "/home/open-reid/reid/dist_metric.py", line 13, in init
self.metric = get_metric(algorithm, *args, **kwargs)
File "/home/open-reid/reid/metric_learning/init.py", line 25, in get_metric
return __factory[algorithm](*args, **kwargs)
TypeError: Can't instantiate abstract class Euclidean with abstract methods get_metric, score_pairs

What do you do to solve this problem

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