반응형

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

 

Bengali.AI Handwritten Grapheme Classification

Classify the components of handwritten Bengali

www.kaggle.com

 

반응형

+ Recent posts