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
demo.ipynb import issues #4
Comments
The class |
Thx Adam,
I have hart, neurocity, and component all added to PYTHONPATH. I also check
layer.py and saw that in fact Layer is defined there. I'll need to check
why does this problem occur.
By the way, has the script ever run on Windows and/or Python3+?
|
I have only hart in my PYTHONPATH; that might be the issue.
I tested only on MacOS and Linux and Python 2.7 |
I think I found the source of the issue. in hart\neurocity_init_.py there is an import from component.model.base which first runs component/init.py. There there is an import from layer which runs component/model/init.py that calls for import from component.model.model base that is importing layer again that eventually imports base again and so on. this infinite loop is whats causing this failure |
The source for the issue when using Python3.3+ can be found here: |
I have modified your package to comply with py3.3+ and tf1.3+ if it interests you guys contact me |
Good job @IdoWSC. Sure, it'd be great to have. Would you like to submit a PR? |
I run demo.ipynb,but I do not found result picture. |
why not use plt.show()? I can not to show the picture. |
Hi,
I have a problem running the demo:
ImportError Traceback (most recent call last)
in ()
7
8 from hart.data import disp
----> 9 from hart.data.kitti.tools import get_data
10 from hart.model import util
11 from hart.model.attention_ops import FixedStdAttention
C:\Program Files\Anaconda3\Lib\site-packages\hart\hart\data\kitti\tools.py in ()
26 import tensorflow as tf
27
---> 28 import neurocity as nct
29 from neurocity.data import store
30 from neurocity.data import tools as data_tools
C:\Program Files\Anaconda3\Lib\site-packages\hart\neurocity_init_.py in ()
20 ########################################################################################
21
---> 22 from component.model.base import train_mode, test_mode, mode
23 from component import loss, layer
24 from component.model.model import Model
C:\Program Files\Anaconda3\Lib\site-packages\hart\neurocity\component_init_.py in ()
23
24 import tensorflow as tf
---> 25 from layer import Layer
26 from model.model import Model
27
C:\Program Files\Anaconda3\Lib\site-packages\hart\neurocity\component\layer.py in ()
26 import numpy as np
27
---> 28 from neurocity.component.model import base
29
30
C:\Program Files\Anaconda3\Lib\site-packages\hart\neurocity\component_init_.py in ()
23
24 import tensorflow as tf
---> 25 from layer import Layer
26 from model.model import Model
27
ImportError: cannot import name 'Layer'
The text was updated successfully, but these errors were encountered: