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.

org_resnet.py 602B

1234567891011121314151617181920
  1. from typing import Tuple
  2. from ...configs.celeba_configs import CelebAConfigs, CelebATag
  3. from ...models.model import Model
  4. from ..entrypoint import BaseEntrypoint
  5. from ...models.celeba.org_resnet import CelebAORGResNet18
  6. class EntryPoint(BaseEntrypoint):
  7. def _get_conf_model(self) -> Tuple[CelebAConfigs, Model]:
  8. conf = CelebAConfigs('CelebA_ResNet_Org', 9, 224, self.phase_type)
  9. conf.max_epochs = 12
  10. conf.main_tag = CelebATag.SmilingTag
  11. conf.tags = [conf.main_tag.name]
  12. model = CelebAORGResNet18(conf.main_tag.name)
  13. return conf, model