Django验证ImageField维度等

我有一个自定义清洁方法如下: def clean_image(self): image = self.cleaned_data[image] if image: from django.core.files.images import get_image_dimensions w, h = get_image_dimensions(image)

python – Keras LSTM输入维度设置

我试图用keras训练LSTM模型,但我觉得我在这里弄错了. 我收到了错误 ValueError: Error when checking input: expected lstm_17_input to have 3 dimensions, but got array with shape (10000, 0, 20) 而我的代码看起来像 model = Sequential()model.a

返回顶部