question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: cannot import name task_evaluation

See original GitHub issue

When invoke this command:

python2 tools/infer_simple.py \
    --cfg configs/12_2017_baselines/e2e_mask_rcnn_R-101-FPN_2x.yaml \
    --output-dir /tmp/detectron-visualizations \
    --image-ext jpg \
    --wts https://s3-us-west-2.amazonaws.com/detectron/35861858/12_2017_baselines/e2e_mask_rcnn_R-101-FPN_2x.yaml.02_32_51.SgT4y1cO/output/train/coco_2014_train:coco_2014_valminusminival/generalized_rcnn/model_final.pkl \
    demo

got this error:

Traceback (most recent call last):
  File "tools/infer_simple.py", line 42, in <module>
    import core.test_engine as infer_engine
  File "/home/ylzhao/develop/detectron/lib/core/test_engine.py", line 36, in <module>
    from datasets import task_evaluation
ImportError: cannot import name task_evaluation

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
jwnsucommented, Jan 23, 2018

Encountered same issue, resolved by adding ‘lib’ to python path.

0reactions
archanraycommented, Jun 20, 2019

Can’t find lib in detectron anymore! i’m getting the following error while using Detectron as backend: File “tools/test_net.py”, line 41, in <module> from core.test_retinanet import test_retinanet ImportError: cannot import name test_retinanet

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django, ImportError: cannot import name 'task' from 'celery'
I have Django application that was using Celery version 4.4.2, which was working fine. from celery import task import logging @task( ...
Read more >
How to Fix ImportError: Cannot Import Name in Python
This error generally occurs when a class cannot be imported due to one of the following reasons: The imported class is in a...
Read more >
How to Fix : “ImportError: Cannot import name X” in Python
The following are the major reasons for the occurrence of "ImportError: cannot import name": The imported class is in a circular dependency.
Read more >
Flow run with Ray and agent throws: `ImportError: cannot ...
Flow run with Ray and agent throws: ImportError: cannot import name 'SubprocessFlowRunner' from partially initialized module 'prefect.flow_runners' #5976.
Read more >
[Solved] ImportError: Cannot Import Name - Python Pool
ImportError : Cannot Import Name: In this article, we will see what are the reasons for importerror cannot import name and find its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found