Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|