-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move enums to separate files and module
- Loading branch information
1 parent
8c004ec
commit 798fb45
Showing
30 changed files
with
116 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
demo_segmentation_tool/app_code/tests/test_demo_annotation_tool.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
from .annotations import AnnotationData, AnnotationEventType, SegmentationAnnotation, ToolOutput, UserInput | ||
from .annotations import AnnotationData, SegmentationAnnotation, ToolOutput, UserInput | ||
from .detections import (BoxDetection, ClassificationDetection, Detections, Observation, Point, PointDetection, | ||
SegmentationDetection, Shape) | ||
from .general import (AboutResponse, AnnotationNodeStatus, Category, CategoryType, Context, DetectionStatus, | ||
ErrorConfiguration, ModelInformation, ModelVersionResponse, NodeState, NodeStatus) | ||
from .general import (AboutResponse, AnnotationNodeStatus, Category, Context, DetectionStatus, ErrorConfiguration, | ||
ModelInformation, ModelVersionResponse, NodeState, NodeStatus) | ||
from .image_metadata import ImageMetadata | ||
from .socket_response import SocketResponse | ||
from .training import (Errors, PretrainedModel, TrainerState, Training, TrainingError, TrainingOut, TrainingStateData, | ||
TrainingStatus) | ||
from .training import Errors, PretrainedModel, Training, TrainingError, TrainingOut, TrainingStateData, TrainingStatus | ||
|
||
__all__ = [ | ||
'AboutResponse', 'AnnotationData', 'AnnotationEventType', 'SegmentationAnnotation', 'ToolOutput', 'UserInput', | ||
'AboutResponse', 'AnnotationData', 'SegmentationAnnotation', 'ToolOutput', 'UserInput', | ||
'BoxDetection', 'ClassificationDetection', 'ImageMetadata', 'Observation', 'Point', 'PointDetection', | ||
'SegmentationDetection', 'Shape', 'Detections', | ||
'AnnotationNodeStatus', 'Category', 'CategoryType', 'Context', 'DetectionStatus', 'ErrorConfiguration', | ||
'AnnotationNodeStatus', 'Category', 'Context', 'DetectionStatus', 'ErrorConfiguration', | ||
'ModelInformation', 'NodeState', 'NodeStatus', 'ModelVersionResponse', | ||
'SocketResponse', | ||
'Errors', 'PretrainedModel', 'TrainerState', 'Training', | ||
'Errors', 'PretrainedModel', 'Training', | ||
'TrainingError', 'TrainingOut', 'TrainingStateData', 'TrainingStatus', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from .annotator import AnnotationEventType | ||
from .detector import OperationMode, OutboxMode, VersionMode | ||
from .general import CategoryType | ||
from .trainer import TrainerState | ||
|
||
__all__ = ['VersionMode', 'OperationMode', 'OutboxMode', 'AnnotationEventType', 'CategoryType', 'TrainerState'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from enum import Enum | ||
|
||
|
||
class AnnotationEventType(str, Enum): | ||
LeftMouseDown = 'left_mouse_down' | ||
RightMouseDown = 'right_mouse_down' | ||
MouseMove = 'mouse_move' | ||
LeftMouseUp = 'left_mouse_up' | ||
RightMouseUp = 'right_mouse_up' | ||
KeyUp = 'key_up' | ||
KeyDown = 'key_down' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from enum import Enum | ||
|
||
|
||
class VersionMode(str, Enum): | ||
FollowLoop = 'follow_loop' # will follow the loop | ||
SpecificVersion = 'specific_version' # will follow the specific version | ||
Pause = 'pause' # will pause the updates | ||
|
||
|
||
class OperationMode(str, Enum): | ||
Startup = 'startup' # used until model is loaded | ||
Idle = 'idle' # will check and perform updates | ||
Detecting = 'detecting' # Blocks updates | ||
|
||
|
||
class OutboxMode(Enum): | ||
CONTINUOUS_UPLOAD = 'continuous_upload' | ||
STOPPED = 'stopped' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
from enum import Enum | ||
|
||
|
||
class CategoryType(str, Enum): | ||
Box = 'box' | ||
Point = 'point' | ||
Segmentation = 'segmentation' | ||
Classification = 'classification' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
from enum import Enum | ||
|
||
|
||
class TrainerState(str, Enum): | ||
Idle = 'idle' | ||
Initialized = 'initialized' | ||
Preparing = 'preparing' | ||
DataDownloading = 'data_downloading' | ||
DataDownloaded = 'data_downloaded' | ||
TrainModelDownloading = 'train_model_downloading' | ||
TrainModelDownloaded = 'train_model_downloaded' | ||
TrainingRunning = 'running' | ||
TrainingFinished = 'training_finished' | ||
ConfusionMatrixSyncing = 'confusion_matrix_syncing' | ||
ConfusionMatrixSynced = 'confusion_matrix_synced' | ||
TrainModelUploading = 'train_model_uploading' | ||
TrainModelUploaded = 'train_model_uploaded' | ||
Detecting = 'detecting' | ||
Detected = 'detected' | ||
DetectionUploading = 'detection_uploading' | ||
ReadyForCleanup = 'ready_for_cleanup' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
learning_loop_node/tests/trainer/states/test_state_detecting.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.