Skip to content

Commit

Permalink
remove unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
gau-nernst committed Jul 24, 2023
1 parent 6ca4bbf commit d7755d7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions vision_toolbox/backbones/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ def get_feature_maps(self, x: Tensor) -> list[Tensor]:
def forward(self, x: Tensor) -> Tensor:
return self.get_feature_maps(x)[-1]

@staticmethod
@abstractmethod
def from_config(variant: str, pretrained: bool = False, **kwargs: Any) -> BaseBackbone:
pass

def _load_state_dict_from_url(self, url: str) -> None:
state_dict = torch.hub.load_state_dict_from_url(url)
self.load_state_dict(state_dict)

0 comments on commit d7755d7

Please sign in to comment.