-
Notifications
You must be signed in to change notification settings - Fork 50
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 #6
Comments
I also got the same error. |
Any way to resolve the error? |
Hi, this reposity uses metric_learn 0.3.0. It this the same with your settings? |
I used 0.2.0,0.3.0, or 0.4.0 to run and got another error :ImportError: cannot import name 'graph_lasso' And if I use 0.5.0, 0.6.0, I still got error same as title. |
I fixd it as follow step |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, thank you for nice work. I am getting the following error when I run source_train.py.
Files already downloaded and verified
Market1501 dataset loaded
subset | # ids | # images
train | 676 | 11744
val | 75 | 1192
trainval | 751 | 12936
query | 750 | 3368
gallery | 751 | 15913
Traceback (most recent call last):
File "source_train.py", line 311, in
main(parser.parse_args())
File "source_train.py", line 196, in main
metric = DistanceMetric(algorithm=args.dist_metric)
File "/home/DomainAdaptiveReID-master/reid/dist_metric.py", line 13, in init
self.metric = get_metric(algorithm, *args, **kwargs)
File "/home/DomainAdaptiveReID-master/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
The text was updated successfully, but these errors were encountered: