chrischoy / SpatioTemporalSegmentation

4D Spatio-Temporal Semantic Segmentation on a 3D video (a sequence of 3D scans)
MIT License
289 stars 51 forks source link

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

Closed avinashsen707 closed 4 years ago

avinashsen707 commented 4 years ago
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 commented 4 years ago

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 commented 4 years ago

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?