Skip to content

Commit

Permalink
Merge branch 'main' into awo/implement-resnet50-model
Browse files Browse the repository at this point in the history
  • Loading branch information
drewoldag authored Oct 1, 2024
2 parents 50df274 + d5515ed commit 3f9d533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kbmod_ml/models/cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@fibad_model
class CNN(nn.Module):
def __init__(self, model_config, shape):
def __init__(self, config, shape):
logger.info("This is an external model, not in FIBAD!!!")
super().__init__()
self.conv1 = nn.Conv2d(3, 6, 5)
Expand All @@ -25,7 +25,7 @@ def __init__(self, model_config, shape):
self.fc2 = nn.Linear(120, 84)
self.fc3 = nn.Linear(84, 10)

self.config = model_config
self.config = config

# Optimizer and criterion could be set directly, i.e. `self.optimizer = optim.SGD(...)`
# but we define them as methods as a way to allow for more flexibility in the future.
Expand Down

0 comments on commit 3f9d533

Please sign in to comment.