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

ImportError: No module named 'LCTM.IoU_metrics' #2

Open
yangchihyuan opened this issue Aug 4, 2017 · 3 comments
Open

ImportError: No module named 'LCTM.IoU_metrics' #2

yangchihyuan opened this issue Aug 4, 2017 · 3 comments

Comments

@yangchihyuan
Copy link

yangchihyuan commented Aug 4, 2017

Can anybody tell me, why is there an error?
While I run the TCN_main.py, an error arises.
Traceback (most recent call last):
File "TCN_main.py", line 40, in
import tf_models, datasets, utils, metrics
File "/home/yangchihyuan/Research/TCN/code/metrics.py", line 8, in
from LCTM.IoU_metrics import *
ImportError: No module named 'LCTM.IoU_metrics'

The LCTM module was downloaded from the GitHub and I installed it using sudo -H python3 setup.py install

I checked the installation by

import LCTM
dir(LCTM)
['builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec']

Where is the IoU_metrics?

@colincsl
Copy link
Owner

colincsl commented Aug 8, 2017

Sorry about this! I fixed the issue in the metrics file. I just checked and the file should run with this change: cccdf86

@yangchihyuan
Copy link
Author

Thank you very much.

@yangchihyuan
Copy link
Author

In the new metrics.py file, there is no attribute 'ComputeMetrics' and it causes an error on line 84 of the TCN_main.py

/home/yangchihyuan/Research/TCN/code/TCN_main.py(84)()->None
-> trial_metrics = metrics.ComputeMetrics(overlap=.1, bg_class=bg_class)
(Pdb) n
AttributeError: module 'metrics' has no attribute 'ComputeMetrics'
(1)()->None

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