slyviee commited on
Commit
16db98c
·
verified ·
1 Parent(s): 0584e28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -7
app.py CHANGED
@@ -64,9 +64,6 @@ class ChannelAttention(layers.Layer):
64
  config.update({'ratio': self.ratio})
65
  return config
66
 
67
- @classmethod
68
- def from_config(cls, config):
69
- return cls(**config)
70
 
71
 
72
  class SpatialAttention(layers.Layer):
@@ -84,10 +81,6 @@ class SpatialAttention(layers.Layer):
84
  def get_config(self):
85
  return super(SpatialAttention, self).get_config()
86
 
87
- @classmethod
88
- def from_config(cls, config):
89
- return cls(**config)
90
-
91
 
92
  # -----------------------------
93
  # Load model + tokenizer
 
64
  config.update({'ratio': self.ratio})
65
  return config
66
 
 
 
 
67
 
68
 
69
  class SpatialAttention(layers.Layer):
 
81
  def get_config(self):
82
  return super(SpatialAttention, self).get_config()
83
 
 
 
 
 
84
 
85
  # -----------------------------
86
  # Load model + tokenizer