Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation refactoring #1977

Merged
merged 11 commits into from
Apr 7, 2023
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file.
- Enhance DetCon logic and SupCon for semantic segmentation(<https://github.com/openvinotoolkit/training_extensions/pull/1958>)
- Classification task refactoring (<https://github.com/openvinotoolkit/training_extensions/pull/1972>)
- Extend OTX explain CLI (<https://github.com/openvinotoolkit/training_extensions/pull/1941>)
- Segmentation task refactoring (<https://github.com/openvinotoolkit/training_extensions/pull/1977>)

### Bug fixes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Tasks
:maxdepth: 3
:caption: Contents:

.. automodule:: otx.algorithms.segmentation.tasks
.. automodule:: otx.algorithms.segmentation.task
:members:
:undoc-members:
2 changes: 2 additions & 0 deletions otx/algorithms/common/adapters/mmcv/hooks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from .fp16_sam_optimizer_hook import Fp16SAMOptimizerHook
from .ib_loss_hook import IBLossHook
from .logger_hook import LoggerReplaceHook, OTXLoggerHook
from .lr_updater_hook import CustomstepLrUpdaterHook
from .model_ema_v2_hook import ModelEmaV2Hook
from .no_bias_decay_hook import NoBiasDecayHook
from .progress_hook import OTXProgressHook
Expand All @@ -55,6 +56,7 @@
"AdaptiveTrainSchedulingHook",
"CancelInterfaceHook",
"CancelTrainingHook",
"CustomstepLrUpdaterHook",
"CheckpointHookWithValResults",
"EnsureCorrectBestCheckpointHook",
"ComposedDataLoadersHook",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""NNCF task related hooks."""
cih9088 marked this conversation as resolved.
Show resolved Hide resolved
"""Module for defining LrUpdaterHook and CustomLRUpdateHook for self-supervised learning using mmseg."""
# Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
4 changes: 4 additions & 0 deletions otx/algorithms/segmentation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@

# Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from .task import OTXSegmentationTask

__all__ = ["OTXSegmentationTask"]
1 change: 0 additions & 1 deletion otx/algorithms/segmentation/adapters/mmseg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# See the License for the specific language governing permissions
# and limitations under the License.


from .datasets import MPASegDataset
from .models import (
ClassIncrEncoderDecoder,
Expand Down
Loading