Create configuration_storm_oracle.py
Browse files
configuration_storm_oracle.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from transformers import PretrainedConfig
|
| 2 |
+
|
| 3 |
+
class StormOracleConfig(PretrainedConfig):
|
| 4 |
+
model_type = "storm_oracle"
|
| 5 |
+
|
| 6 |
+
def __init__(self,
|
| 7 |
+
in_channels: int = 3,
|
| 8 |
+
image_size: int = 256,
|
| 9 |
+
**kwargs):
|
| 10 |
+
super().__init__(**kwargs)
|
| 11 |
+
self.in_channels = in_channels
|
| 12 |
+
self.image_size = image_size
|