-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1683 from phoenix-xhuang/master
[YMIR 2.4.0]
- Loading branch information
Showing
466 changed files
with
13,408 additions
and
7,047 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,12 @@ NGINX_PORT=12001 | |
|
||
# API | ||
APP_SECRET_KEY=replace_with_your_secret_key | ||
PUBLIC_DATASET_OWNER=1 | ||
FIRST_ADMIN=[email protected] | ||
FIRST_ADMIN_PASSWORD=12345678 | ||
APP_API_KEY=replace_with_your_app_api_key | ||
VIZ_TIMEOUT=30 | ||
REGISTRATION_NEEDS_APPROVAL=False | ||
INIT_OFFICIAL_DOCKER_IMAGE=True | ||
|
||
# Database (MySQL) | ||
MYSQL_ROOT_PASSWORD=ymir_db_passwd | ||
|
@@ -72,5 +72,5 @@ DEPLOY_MODULE_HOST_PORT=18801 | |
DEPLOY_MODULE_URL=${DEPLOY_MODULE_HOST_PORT} | ||
DEPLOY_MODULE_MYSQL_ROOT_PASSWORD=deploy_db_passwd | ||
|
||
#public image module enviroment | ||
# public image module enviroment | ||
PUBLIC_IMAGE_URL=http://pubimg.vesionbook.com:8110 |
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
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,69 @@ | ||
from enum import IntEnum | ||
|
||
from mir.protos import mir_command_pb2 as mir_cmd_pb | ||
|
||
|
||
class TaskType(IntEnum): | ||
training = mir_cmd_pb.TaskTypeTraining | ||
mining = mir_cmd_pb.TaskTypeMining | ||
label = mir_cmd_pb.TaskTypeLabel | ||
filter = mir_cmd_pb.TaskTypeFilter | ||
merge = mir_cmd_pb.TaskTypeMerge | ||
fusion = mir_cmd_pb.TaskTypeFusion | ||
infer = mir_cmd_pb.TaskTypeDatasetInfer | ||
|
||
|
||
class TaskState(IntEnum): | ||
unknown = mir_cmd_pb.TaskStateUnknown | ||
pending = mir_cmd_pb.TaskStatePending | ||
running = mir_cmd_pb.TaskStateRunning | ||
done = mir_cmd_pb.TaskStateDone | ||
error = mir_cmd_pb.TaskStateError | ||
terminate = mir_cmd_pb.TaskStateTerminate | ||
|
||
|
||
class ResultType(IntEnum): | ||
no_result = 0 | ||
dataset = 1 | ||
model = 2 | ||
prediction = 3 | ||
docker_image = 4 | ||
|
||
|
||
class ResultState(IntEnum): | ||
processing = 0 | ||
ready = 1 | ||
error = 2 | ||
|
||
|
||
class ObjectType(IntEnum): | ||
unknown = mir_cmd_pb.OT_UNKNOWN | ||
classification = mir_cmd_pb.OT_CLASS | ||
object_detect = mir_cmd_pb.OT_DET_BOX | ||
segmentation = mir_cmd_pb.OT_SEG | ||
instance_segmentation = 4 | ||
|
||
|
||
class AnnotationType(IntEnum): | ||
gt = 1 | ||
pred = 2 | ||
|
||
|
||
class DockerImageType(IntEnum): | ||
unknown = 0 | ||
training = 1 | ||
mining = 2 | ||
infer = 9 | ||
|
||
|
||
class DockerImageState(IntEnum): | ||
pending = 1 | ||
done = 3 | ||
error = 4 | ||
|
||
|
||
class ImportStrategy(IntEnum): | ||
no_annotations = 1 | ||
ignore_unknown_annotations = 2 | ||
stop_upon_unknown_annotations = 3 | ||
add_unknown_annotations = 4 |
Oops, something went wrong.