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_inception.py 630B

1 year ago
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.single_tag_org_inception import CelebAORGInception
  6. class EntryPoint(BaseEntrypoint):
  7. def _get_conf_model(self) -> Tuple[CelebAConfigs, Model]:
  8. conf = CelebAConfigs('CelebA_Inception_Org', 8, 299, self.phase_type)
  9. conf.max_epochs = 12
  10. conf.main_tag = CelebATag.SmilingTag
  11. conf.tags = [conf.main_tag.name]
  12. model = CelebAORGInception(conf.main_tag.name, 0.4)
  13. return conf, model