每当我尝试使用tensorflow训练我的模型时,我都会遇到TypeError。到目前为止: steps_per_epoch=train_steps,keras_preprocessing/image/image_data_generator.py", line 704, in standardizeTypeError: &
我将经常使用的模块放在子目录lib/中,并期望通过以下方式将所有模块加载到main.py中(参见)但是遇到问题的TypeError: 'module' objectis not callable。/usr/bin/env python
from lib import * # cause: TypeError: 'module' object is no
File "/usr/lib/python2.7/threading.py", line 1082, in runTypeError: 'str' object is not callable
所以我开始阅读最后一部分(TypeError:‘str’对象是不可调用的,我想我一定是把它当做了一个变量,它干扰了内置的str函数。int(datetime.dateti