Closed Jianyuyu5666 closed 4 years ago
Yes, I found the same question when I run evaluate.py, I opened metrics.py and found nothing about "jaccard_index"........
I have the same problem. I guess the author want to calculate the Jaccard similarity score of two bounding boxes, but I am confused with the third parameter passing to the function. Could you tell me what's the function of the last pair variable (i, j) for please? @varunagrawal
I have added the jaccard_index
function back. The code should work now.
Traceback (most recent call last): File "main.py", line 11, in
from datasets import get_dataloader
File "/home/ivdai/Gene/tiny-faces-pytorch/datasets/init.py", line 5, in
from utils.cluster import compute_kmedoids
File "/home/ivdai/Gene/tiny-faces-pytorch/utils/cluster.py", line 14, in
from .metrics import jaccard_index, rect_dist
ImportError: cannot import name 'jaccard_index' from 'utils.metrics' (/home/ivdai/Gene/tiny-faces-pytorch/utils/metrics.py)
Makefile:12: recipe for target 'main' failed
make: *** [main] Error 1
You forget to update your cluster.py under utils dir