Skip to content

Commit

Permalink
changing alexnet edit
Browse files Browse the repository at this point in the history
  • Loading branch information
deirdre-k committed Jun 18, 2024
1 parent 575a139 commit 4bb3a70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion brainscore_vision/models/alexnet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from brainscore_vision.model_helpers.brain_transformation import ModelCommitment
from .model import get_model, LAYERS

model_registry['alexnet'] = lambda: ModelCommitment(
model_registry['alexne'] = lambda: ModelCommitment(
identifier='alexnet',
activations_model=get_model(),
layers=LAYERS)
2 changes: 1 addition & 1 deletion brainscore_vision/models/alexnet/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
def get_model():
model = torchvision.models.alexnet(pretrained=True)
preprocessing = functools.partial(load_preprocess_images, image_size=224)
wrapper = PytorchWrapper(identifier='alexne', model=model, preprocessing=preprocessing)
wrapper = PytorchWrapper(identifier='alexnet', model=model, preprocessing=preprocessing)
wrapper.image_size = 224
return wrapper

0 comments on commit 4bb3a70

Please sign in to comment.