TheTrueJard commited on
Commit
8059958
·
verified ·
1 Parent(s): 748c921

Upload folder using huggingface_hub

Browse files
__pycache__/__init__.cpython-310.pyc ADDED
Binary file (293 Bytes). View file
 
__pycache__/config.cpython-310.pyc ADDED
Binary file (1.2 kB). View file
 
__pycache__/pfsq.cpython-310.pyc ADDED
Binary file (6.62 kB). View file
 
__pycache__/plpq.cpython-310.pyc ADDED
Binary file (6.26 kB). View file
 
__pycache__/wavelet.cpython-310.pyc ADDED
Binary file (5.35 kB). View file
 
config.py CHANGED
@@ -5,28 +5,26 @@ from transformers import PretrainedConfig
5
  class PLPQConfig(PretrainedConfig):
6
  model_type: str = "PLPQ"
7
  def __init__(self,
8
- image_size: List[int, int],
9
- patch_size: int,
10
- dropout: float,
11
- vocab_size: int,
12
- levels: List[int],
13
- num_quantizers: int,
14
- num_in_channels: int,
15
- num_out_channels: int,
16
- use_wavelets: bool,
17
- encoder_blocks: List[List],
18
- decoder_blocks: List[List],
19
  **kwargs
20
  ):
21
- image_size = image_size
22
- patch_size = patch_size
23
- dropout = dropout
24
- vocab_size = vocab_size
25
- levels = levels
26
- num_quantizers = num_quantizers
27
- num_in_channels = num_in_channels
28
- num_out_channels = num_out_channels
29
- use_wavelets = use_wavelets
30
- encoder_blocks = encoder_blocks
31
- decoder_blocks = decoder_blocks
32
- super.__init__(**kwargs)
 
5
  class PLPQConfig(PretrainedConfig):
6
  model_type: str = "PLPQ"
7
  def __init__(self,
8
+ image_size: List[int] = [512, 512],
9
+ patch_size: int = 16,
10
+ dropout: float = 0.0,
11
+ levels: List[int] = [8,8,8,5,5,5],
12
+ num_quantizers: int = 4,
13
+ num_in_channels: int = 3,
14
+ num_out_channels: int = 3,
15
+ use_wavelets: bool = True,
16
+ encoder_blocks: List[List] = [],
17
+ decoder_blocks: List[List] = [],
 
18
  **kwargs
19
  ):
20
+ self.image_size = image_size
21
+ self.patch_size = patch_size
22
+ self.dropout = dropout
23
+ self.levels = levels
24
+ self.num_quantizers = num_quantizers
25
+ self.num_in_channels = num_in_channels
26
+ self.num_out_channels = num_out_channels
27
+ self.use_wavelets = use_wavelets
28
+ self.encoder_blocks = encoder_blocks
29
+ self.decoder_blocks = decoder_blocks
30
+ super().__init__(**kwargs)