Skip to content

Commit

Permalink
clean up mobile-vision/mobile_cv/mobile_cv/model_zoo/tasks
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #198

See summary of D59237876

Reviewed By: rbasch

Differential Revision: D59239507

fbshipit-source-id: f8f57167a9642c672d87273f0d5d632cb8435cc2
  • Loading branch information
Yanghan Wang authored and facebook-github-bot committed Jul 8, 2024
1 parent 28b0a8c commit ee3a3c0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion mobile_cv/model_zoo/tasks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved

from . import task_general # noqa
from mobile_cv.common.misc.py import import_matching_modules


import_matching_modules("mobile_cv.model_zoo.tasks", "task_general")
# @fb-only: import_matching_modules("mobile_cv.model_zoo.tasks.fb", "*")
2 changes: 2 additions & 0 deletions mobile_cv/model_zoo/tasks/task_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
Task with some common task implementation
"""

from mobile_cv.common.misc.oss_utils import fb_overwritable
from mobile_cv.model_zoo.tasks.task_base import TaskBase


# task with common implementations
@fb_overwritable()
class TaskCommon(TaskBase):
pass
4 changes: 2 additions & 2 deletions mobile_cv/model_zoo/tasks/task_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

from mobile_cv.model_zoo.datasets import dataset_factory
from mobile_cv.model_zoo.models import model_zoo_factory
from mobile_cv.model_zoo.tasks.task_common import TaskCommon

from . import task_factory
from mobile_cv.model_zoo.tasks import task_factory
from mobile_cv.model_zoo.tasks.task_common import TaskCommon


@task_factory.TASK_FACTORY.register("general")
Expand Down

0 comments on commit ee3a3c0

Please sign in to comment.