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 while running demo.py because of commented code in lib.core.postprocess #4

Closed
pra-dan opened this issue Aug 29, 2021 · 5 comments

Comments

@pra-dan
Copy link

pra-dan commented Aug 29, 2021

I was about to submit a PR but thought you guys should do it rather.

@olivia23333
Copy link
Collaborator

Thank you! Fix this bug in the latest commit.

@pra-dan
Copy link
Author

pra-dan commented Aug 29, 2021

Its not done yet, should I make a PR? Is that what you mean ?

@olivia23333
Copy link
Collaborator

Sorry about that, may be you can show more details about the ImportError?

@pra-dan
Copy link
Author

pra-dan commented Aug 29, 2021

The issue was

  File "tools/demo.py", line 29, in <module>
    from lib.core.postprocess import morphological_process, connect_components_analysis, fitlane
ImportError: cannot import name 'fitlane' from 'lib.core.postprocess' (/home/YOLOP/lib/core/postprocess.py)

But this can be resolved if the code in 'lib.core.postprocess is uncommented.

@pra-dan pra-dan changed the title ImportError while running demo.py because of commented code in lib.core.preprocess ImportError while running demo.py because of commented code in lib.core.postprocess Aug 29, 2021
@olivia23333
Copy link
Collaborator

Fix this in the 'import bug fixed' commit. Thank you!

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