Skip to content

Troubleshooting

Mikko Kotila edited this page Sep 27, 2018 · 9 revisions

Getting the subprocess32 error when installing

This means that a dependency used by matplotlib called subprocess32 is not building, which is generally associated with python 2. The way to overcome this issue is by first installing an older version of matplotlib (this is ok):

pip install matplotlib==1.5.3

Getting a warning on wrong numpy version for tensorflow

This might happen on some older systems with python 2. Overcome by first installing an older numpy version:

pip install numpy==1.14.5

When using lr_normalizer get TypeError: 'str' object is not callable

This error comes as a result of listing optimizers as string values as opposed to the actual object name in the params dictionary.

When not using lr_normalizer get ValueError: Could not interpret optimizer identifier: <class 'keras.optimizers.Adam'>

This is the reverse of the above; when lr_normalizer is not used, string values for optimizers should be used in the params dictionary.

When using a string value for activation and get TypeError: unsupported operand type(s) for +: 'int' and 'numpy.str_'

For example if the activation is 'relu' and 'elu', then this can be resolved simply by:

from keras.activations import relu, elu

Then instead of using a string value in the params dictionary, use the actual object (e.g. relu).

Clone this wiki locally