반응형
Unknown layer: FixedDropout
EfficinetNet 실행시 오류
class FixedDropout(tf.keras.layers.Dropout):
def _get_noise_shape(self, inputs):
if self.noise_shape is None:
return self.noise_shape
symbolic_shape = K.shape(inputs)
noise_shape = [symbolic_shape[axis] if shape is None else shape
for axis, shape in enumerate(self.noise_shape)]
return tuple(noise_shape)
dependencies = {
'FixedDropout':FixedDropout
}
model = load_model('./saved_model/'+model_id,custom_objects =dependencies)
해결 참조 : www.kaggle.com/c/bengaliai-cv19/discussion/134952
반응형
'Deep learning > 오류해결' 카테고리의 다른 글
20201110-jsp image가 깨져서 나오지 않을 경우 (0) | 2020.11.10 |
---|---|
20201110-Required request part 'file' is not present (0) | 2020.11.10 |
spring-Exiting from "FORWARD" dispatch, status 404 (0) | 2020.11.09 |
No module named 'yaml' (0) | 2020.10.28 |
No module named 'cv2' (0) | 2020.10.20 |