You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lap_resnet50_ft.py 581B

1234567891011121314151617
  1. from typing import Tuple
  2. from torchlap.configs.imagenet_configs import ImagenetConfigs
  3. from ...models.model import Model
  4. from ..entrypoint import BaseEntrypoint
  5. from ...models.imagenet.lap_resnet import ImagenetLAPResNet50
  6. class EntryPoint(BaseEntrypoint):
  7. def _get_conf_model(self) -> Tuple[ImagenetConfigs, Model]:
  8. config = ImagenetConfigs('ImagenetFT', 2, 224, self.phase_type)
  9. model = ImagenetLAPResNet50(sigmoid_scale=0.1)
  10. config.freezing_regexes = [
  11. r'(?!^layer4\..*$)(?!^fc\..*$)(^.*$)'
  12. ]
  13. return config, model