I thought I’d already reported this, but apparently not [Update: yes I did, but via the in-tool bug report that sends to github, so it is issue 88 there]
Model source: perceptilabs github repo Seeing-in-the-Dark
Yesterday I downloaded the model (and manually edited the file paths in model.json), then imported the model. Following instructions, Local_1 data was set to Long_cropped OK, but there was an error on setting Local_2 to Short_Cropped (see issue 88)
Today (perceptilabs shutdown yesterday and restarted this morning), I reopened the model and Short_Cropped was loaded fine - but…
Now there is a new error on Convolution_1 - from the Problems panel:
Traceback (most recent call last): File "perceptilabs\lwcore\strategies\tf1x.py", line 50, in perceptilabs.lwcore.strategies.tf1x.Tf1xInnerStrategy.run File "<rendered-code: 1601056258719 [DeepLearningConv]>", line 30, in __call__ File "c:\users\julian\anaconda3\envs\perceptilabs_tf1-15_gpu\lib\site-packages\tensorflow_core\python\util\lazy_loader.py", line 62, in __getattr__ module = self._load() File "c:\users\julian\anaconda3\envs\perceptilabs_tf1-15_gpu\lib\site-packages\tensorflow_core\python\util\lazy_loader.py", line 45, in _load module = importlib.import_module(self.__name__) File "c:\users\julian\anaconda3\envs\perceptilabs_tf1-15_gpu\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "c:\users\julian\anaconda3\envs\perceptilabs_tf1-15_gpu\lib\site-packages\tensorflow_core\contrib\__init__.py", line 39, in <module> from tensorflow.contrib import compiler File "c:\users\julian\anaconda3\envs\perceptilabs_tf1-15_gpu\lib\site-packages\tensorflow_core\contrib\compiler\__init__.py", line 21, in <module> from tensorflow.contrib.compiler import jit File "c:\users\julian\anaconda3\envs\perceptilabs_tf1-15_gpu\lib\site-packages\tensorflow_core\contrib\compiler\__init__.py", line 22, in <module> from tensorflow.contrib.compiler import xla File "c:\users\julian\anaconda3\envs\perceptilabs_tf1-15_gpu\lib\site-packages\tensorflow_core\contrib\compiler\xla.py", line 22, in <module> from tensorflow.python.estimator import model_fn as model_fn_lib File "c:\users\julian\anaconda3\envs\perceptilabs_tf1-15_gpu\lib\site-packages\tensorflow_core\python\estimator\model_fn.py", line 26, in <module> from tensorflow_estimator.python.estimator import model_fn File "c:\users\julian\anaconda3\envs\perceptilabs_tf1-15_gpu\lib\site-packages\tensorflow_estimator\python\estimator\model_fn.py", line 29, in <module> from tensorflow.python.types import core ModuleNotFoundError: No module named 'tensorflow.python.types'
Now, I built this environment with a conda install tf 1.15, so I would have expected all tf dependencies to be there already, but if not, then brought in by perceptilabs as needed during installation, but maybe that’s not the issue…
there is a related issue on github that a qualified dev would understand (but I don’t)… No module named ‘tensorflow.python.types’ when building estimator from master branch. Googling also throws up many similar issues.
That said, a search in site-packages found no *.python.types file, but (learning?) I think maybe imports are specifying paths because in my TF 2.3 installation there is tensorflow > python > types folder structure, within which I do find some type definitions in .py files such as core.py. I have yet to find a similar set in tf 1.15
Update: dtypes do seem to exist in tf 1.15 but elsewhere… see
Given that info, how could/should it be referenced to make the model work now?
Hope that helps, Julian