Skip to content

Commit

Permalink
xinet training running
Browse files Browse the repository at this point in the history
  • Loading branch information
fpaissan committed Nov 27, 2023
1 parent 7f0f0bd commit e62e761
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions recipes/image_classification/cfg/phinet.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

# Model configuration
model = "phinet"
input_shape = (3, 32, 32)
alpha = 3
num_layers = 7
Expand Down
5 changes: 3 additions & 2 deletions recipes/image_classification/cfg/xinet.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
"""

# Model configuration
input_shape = (3, 32, 32)
model = "xinet"
input_shape = (3, 128, 128)
alpha = 1
num_layers = 7
return_layers = None
compression = 4
gamma = 4

ckpt_pretrained = ""

Expand Down
2 changes: 1 addition & 1 deletion recipes/image_classification/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, hparams, *args, **kwargs):
self.modules["classifier"] = XiNet(
input_shape=hparams.input_shape,
alpha=hparams.alpha,
compression=hparams.compression,
gamma=hparams.gamma,
num_layers=hparams.num_layers,
return_layers=hparams.return_layers,
# classification-specific
Expand Down

0 comments on commit e62e761

Please sign in to comment.