Skip to content

Commit

Permalink
Update model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pellegreene authored Jul 30, 2024
1 parent 40bef92 commit 48d8aee
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions brainscore_vision/models/inception_v4_pytorch/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ def get_model(name):

def get_layers(name):
assert name == 'inception_v4_pytorch'
layer_names = []

for name, module in MODEL.named_modules():
layer_names.append(name)

return layer_names[2:]

layers = ['Conv2d_1a_3x3'] +
['Mixed_3a'] +
['Mixed_4a'] +
[f'Mixed_5{i}' for i in ['a', 'b', 'c', 'd', 'e']] +
[f'Mixed_6{i}' for i in ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']] +
[f'Mixed_7{i}' for i in ['a', 'b', 'c', 'd']] +
['global_pool']

return layers


def get_bibtex(model_identifier):
Expand Down

0 comments on commit 48d8aee

Please sign in to comment.