init
This commit is contained in:
18
lib/task/segmentation.py
Normal file
18
lib/task/segmentation.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# coding: utf-8
|
||||
# Copyright (c) Ant Group. All rights reserved.
|
||||
|
||||
from antmmf.common.registry import registry
|
||||
from antmmf.tasks import BaseTask
|
||||
|
||||
|
||||
@registry.register_task("segmentation")
|
||||
class SegmentationTask(BaseTask):
|
||||
|
||||
def __init__(self):
|
||||
super(SegmentationTask, self).__init__("segmentation")
|
||||
|
||||
def _get_available_datasets(self):
|
||||
return ["pretraining_loader"]
|
||||
|
||||
def _preprocess_item(self, item):
|
||||
return item
|
||||
Reference in New Issue
Block a user