Skip to content

Commit

Permalink
Made a small mistake in models code
Browse files Browse the repository at this point in the history
  • Loading branch information
guydav committed Nov 28, 2022
1 parent 807a2c9 commit 47b70ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simple_relational_reasoning/embeddings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ def build_model(model_name: str, device: str, pretrained: bool = True, saycam: t
model = models.resnext50_32x4d(weights=weights)
model.fc_backup = model.fc
model.embedding_dim = MODEL_EMBEDDING_DIMENSIONS[(model_name, unpooled_output)] # type: ignore
model.module.fc = nn.Identity() # type: ignore
model.fc = nn.Identity() # type: ignore
if unpooled_output:
model.module.avgpool = nn.Identity() # type: ignore
mode.avgpool = nn.Identity() # type: ignore
model = model.to(device)

if model is None:
Expand Down

0 comments on commit 47b70ae

Please sign in to comment.