TemporalConvolutionalNetworks icon indicating copy to clipboard operation
TemporalConvolutionalNetworks copied to clipboard

ImportError: No module named 'LCTM.IoU_metrics'

Open yangchihyuan opened this issue 8 years ago • 3 comments

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?

yangchihyuan avatar Aug 04 '17 08:08 yangchihyuan

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

colincsl avatar Aug 08 '17 02:08 colincsl

Thank you very much.

yangchihyuan avatar Aug 08 '17 06:08 yangchihyuan

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

yangchihyuan avatar Aug 08 '17 06:08 yangchihyuan