-
Notifications
You must be signed in to change notification settings - Fork 1
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 #112 from unicef/feature/settings
Feature/settings
- Loading branch information
Showing
58 changed files
with
1,197 additions
and
733 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
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,11 +1,6 @@ | ||
from django.contrib import admin | ||
|
||
from .config import ConfigAdmin # noqa | ||
from .deduplicationset import DeduplicationSetAdmin # noqa | ||
from .duplicate import DuplicateAdmin # noqa | ||
from .hdetoken import HDETokenAdmin # noqa | ||
from .image import ImageAdmin # noqa | ||
|
||
admin.site.site_header = "HOPE Dedup Engine" | ||
admin.site.site_title = "HOPE Deduplication Admin" | ||
admin.site.index_title = "Welcome to the HOPE Deduplication Engine Admin" | ||
from .jobs import DedupJob # noqa |
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,10 @@ | ||
from django.contrib import admin | ||
|
||
from django_celery_boost.admin import CeleryTaskModelAdmin | ||
|
||
from hope_dedup_engine.apps.api.models.jobs import DedupJob | ||
|
||
|
||
@admin.register(DedupJob) | ||
class DedupJobAdmin(CeleryTaskModelAdmin): | ||
list_display = ["deduplication_set_id", "progress"] |
72 changes: 72 additions & 0 deletions
72
src/hope_dedup_engine/apps/api/config_settings_schema.json
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,72 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"detection": { | ||
"type": "object", | ||
"properties": { | ||
"confidence": { | ||
"type": "number", | ||
"exclusiveMinimum": 0, | ||
"maximum": 1, | ||
"default": "constance.config.FACE_DETECTION_CONFIDENCE" | ||
} | ||
}, | ||
"default": {}, | ||
"required": [ | ||
"confidence" | ||
] | ||
}, | ||
"recognition": { | ||
"type": "object", | ||
"properties": { | ||
"num_jitters": { | ||
"type": "integer", | ||
"minimum": 1, | ||
"default": "constance.config.FACE_ENCODINGS_NUM_JITTERS" | ||
}, | ||
"model": { | ||
"type": "string", | ||
"enum": [ | ||
"small", | ||
"large" | ||
], | ||
"default": "constance.config.FACE_ENCODINGS_MODEL" | ||
}, | ||
"preprocessors": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"enum": [] | ||
}, | ||
"uniquItems": true, | ||
"default": [] | ||
} | ||
}, | ||
"default": {}, | ||
"required": [ | ||
"num_jitters", | ||
"model" | ||
] | ||
}, | ||
"duplicates": { | ||
"type": "object", | ||
"properties": { | ||
"tolerance": { | ||
"type": "number", | ||
"exclusiveMinimum": 0, | ||
"maximum": 1, | ||
"default": "constance.config.FACE_DISTANCE_THRESHOLD" | ||
} | ||
}, | ||
"default": {}, | ||
"required": [ | ||
"tolerance" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"detection", | ||
"recognition", | ||
"duplicates" | ||
] | ||
} |
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.