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

module 'lib' has no attribute 'datasets' #21

Closed
avinashsen707 opened this issue Jan 16, 2020 · 2 comments
Closed

module 'lib' has no attribute 'datasets' #21

avinashsen707 opened this issue Jan 16, 2020 · 2 comments

Comments

@avinashsen707
Copy link

avinashsen707 commented Jan 16, 2020

Traceback (most recent call last):
  File "/content/SpatioTemporalSegmentation/main.py", line 26, in <module>
    from lib.datasets import load_dataset
  File "/content/SpatioTemporalSegmentation/lib/datasets/__init__.py", line 1, in <module>
    import lib.datasets.synthia as synthia
AttributeError: module 'lib' has no attribute 'datasets'
@chrischoy
Copy link
Owner

I'm not following. Why would you install tensorflow 2.0?

Regardless, this is due to python not adding the current path to the python path.

Run with python -m main

@zaiweizhang
Copy link

Hi, I am having the same issue, and I have tried running with python -m main
I believe in the train script it's using python -m main.
It doesn't work. Would you mind providing other solutions?

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

3 participants