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

Merged cvat audino #11

Open
wants to merge 38 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f722f31
Fix: merged audino with cvat
ashish7515 Jul 13, 2024
fe5581a
Fix: yolo
ashish7515 Jul 14, 2024
19fdf7e
Fix: error while creating jobs
ashish7515 Jul 14, 2024
36ecba9
Fix: make migrations
ashish7515 Jul 14, 2024
dec9763
fix: dynamic email templates
ashish7515 Jul 15, 2024
3b21c34
Fix: host for ai-annotation
ashish7515 Jul 15, 2024
239e393
Update Dockerfile
rohan220217 Jul 16, 2024
f760075
Fix: update schema
ashish7515 Jul 21, 2024
7a0862d
Merge branch 'merged_cvat_audino' of https://github.com/midas-researc…
ashish7515 Jul 21, 2024
eb5de95
Fix: linter checks
ashish7515 Jul 21, 2024
dca52dd
Fix: timeout request
ashish7515 Jul 21, 2024
be83114
Fix: github test issues
ashish7515 Jul 21, 2024
e1b5c95
Fix: Quality Report parameters and add extra_params in task model
ashish7515 Jul 31, 2024
391c3dc
sorting by start column in pandas dataframe for task and job
siesto1elemento Aug 18, 2024
581efe2
Merge pull request #13 from siesto1elemento/my-feature-branch
rohan220217 Aug 20, 2024
b2eecb2
feat: audino flags added in task and job
rohan220217 Aug 20, 2024
ac403c3
Added_voxceleb, VCTK_corpus and Librivox formats for annotation exports
siesto1elemento Aug 20, 2024
72e4778
Merge pull request #14 from siesto1elemento/my-feature-branch
rohan220217 Aug 23, 2024
0b6165a
Made corrections for LibriVox
siesto1elemento Aug 23, 2024
6e12726
Initial Commit
Vignesh16879 Sep 1, 2024
f1597a8
1.1
Vignesh16879 Sep 1, 2024
255c3d0
1.2
Vignesh16879 Sep 1, 2024
669e733
1.3
Vignesh16879 Sep 1, 2024
35d512f
1.4
Vignesh16879 Sep 1, 2024
38401fe
Update views.py
Vignesh16879 Sep 4, 2024
f91702d
1.5
Vignesh16879 Sep 4, 2024
050ad75
1.6
Vignesh16879 Sep 6, 2024
fc2171e
Merge pull request #15 from siesto1elemento/my-feature-branch
rohan220217 Sep 6, 2024
6cd1a20
1.6
Vignesh16879 Sep 6, 2024
9fda5a2
1.7
Vignesh16879 Sep 6, 2024
e3bf29f
1.7
Vignesh16879 Sep 11, 2024
61f4046
notifications
Vignesh16879 Sep 11, 2024
166ba26
notifications
Vignesh16879 Sep 11, 2024
01bf22d
notifications
Vignesh16879 Sep 11, 2024
4f91723
added cloud storage for task creation and video chunk creator
Vignesh16879 Nov 11, 2024
5975ac8
Update permissions.py to original
Vignesh16879 Nov 11, 2024
edd588f
added cloud storage for task creation and video chunk creator
Vignesh16879 Nov 11, 2024
b81a78d
Merge pull request #18 from midas-research/added_notifications_to_mer…
rohan220217 Nov 22, 2024
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ cvat-core/reports

# produced by cvat/apps/iam/rules/tests/generate_tests.py
/cvat/apps/*/rules/*_test.gen.rego

# Custom
rsa
rsa.pub
29 changes: 15 additions & 14 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@
"env": {
"CVAT_SERVERLESS": "1",
"ALLOWED_HOSTS": "*",
"DJANGO_LOG_SERVER_HOST": "localhost",
"DJANGO_LOG_SERVER_PORT": "8282"
"IAM_OPA_BUNDLE": "1",
// "DJANGO_LOG_SERVER_HOST": "localhost",
// "DJANGO_LOG_SERVER_PORT": "8282"
},
"args": [
"runserver",
Expand Down Expand Up @@ -210,8 +211,8 @@
"django": true,
"cwd": "${workspaceFolder}",
"env": {
"DJANGO_LOG_SERVER_HOST": "localhost",
"DJANGO_LOG_SERVER_PORT": "8282"
// "DJANGO_LOG_SERVER_HOST": "localhost",
// "DJANGO_LOG_SERVER_PORT": "8282"
},
"console": "internalConsole"
},
Expand All @@ -232,8 +233,8 @@
"django": true,
"cwd": "${workspaceFolder}",
"env": {
"DJANGO_LOG_SERVER_HOST": "localhost",
"DJANGO_LOG_SERVER_PORT": "8282"
// "DJANGO_LOG_SERVER_HOST": "localhost",
// "DJANGO_LOG_SERVER_PORT": "8282"
},
"console": "internalConsole"
},
Expand All @@ -254,8 +255,8 @@
"django": true,
"cwd": "${workspaceFolder}",
"env": {
"DJANGO_LOG_SERVER_HOST": "localhost",
"DJANGO_LOG_SERVER_PORT": "8282"
// "DJANGO_LOG_SERVER_HOST": "localhost",
// "DJANGO_LOG_SERVER_PORT": "8282"
},
"console": "internalConsole"
},
Expand All @@ -276,8 +277,8 @@
"django": true,
"cwd": "${workspaceFolder}",
"env": {
"DJANGO_LOG_SERVER_HOST": "localhost",
"DJANGO_LOG_SERVER_PORT": "8282"
// "DJANGO_LOG_SERVER_HOST": "localhost",
// "DJANGO_LOG_SERVER_PORT": "8282"
},
"console": "internalConsole"
},
Expand All @@ -295,8 +296,8 @@
"-i", "1"
],
"env": {
"DJANGO_LOG_SERVER_HOST": "localhost",
"DJANGO_LOG_SERVER_PORT": "8282"
// "DJANGO_LOG_SERVER_HOST": "localhost",
// "DJANGO_LOG_SERVER_PORT": "8282"
},
"console": "internalConsole"
},
Expand Down Expand Up @@ -355,8 +356,8 @@
"django": true,
"cwd": "${workspaceFolder}",
"env": {
"DJANGO_LOG_SERVER_HOST": "localhost",
"DJANGO_LOG_SERVER_PORT": "8282"
// "DJANGO_LOG_SERVER_HOST": "localhost",
// "DJANGO_LOG_SERVER_PORT": "8282"
},
"console": "internalConsole"
},
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ RUN --mount=type=cache,target=/root/.cache/pip/http-v2 \
FROM golang:1.22.4 AS build-smokescreen

RUN git clone --depth=1 https://github.com/stripe/smokescreen.git
RUN cd smokescreen && git checkout eb1ac09 && go build -o /tmp/smokescreen
RUN cd smokescreen && git checkout master && go build -o /tmp/smokescreen

FROM ${BASE_IMAGE}

Expand Down
62 changes: 62 additions & 0 deletions cvat/apps/dataset_manager/formats/aud_common_voice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Copyright (C) 2020-2022 Intel Corporation
# Copyright (C) 2023-2024 CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT





import os.path as osp
from glob import glob

from pyunpack import Archive

from cvat.apps.dataset_manager.bindings import (GetCVATDataExtractor,
import_dm_annotations, match_dm_item, find_dataset_root)
from cvat.apps.dataset_manager.util import make_zip_archive
from datumaro.components.extractor import DatasetItem
from datumaro.components.project import Dataset
from datumaro.plugins.yolo_format.extractor import YoloExtractor

from .registry import dm_env, exporter, importer
from cvat.apps.engine.log import ServerLogManager
slogger = ServerLogManager(__name__)


@exporter(name='YOLO', ext='ZIP', version='1.1')
def _export(dst_file, temp_dir, instance_data, save_images=False):
slogger.glob.info("HEYLO YOLO EXPORTER AUDINO")
# slogger.glob.debug()
dataset = Dataset.from_extractors(GetCVATDataExtractor(
instance_data, include_images=save_images), env=dm_env)

dataset.export(temp_dir, 'yolo', save_images=save_images)

make_zip_archive(temp_dir, dst_file)

@importer(name='YOLO', ext='ZIP', version='1.1')
def _import(src_file, temp_dir, instance_data, load_data_callback=None, **kwargs):
Archive(src_file.name).extractall(temp_dir)

image_info = {}
frames = [YoloExtractor.name_from_path(osp.relpath(p, temp_dir))
for p in glob(osp.join(temp_dir, '**', '*.txt'), recursive=True)]
root_hint = find_dataset_root(
[DatasetItem(id=frame) for frame in frames], instance_data)
for frame in frames:
frame_info = None
try:
frame_id = match_dm_item(DatasetItem(id=frame), instance_data,
root_hint=root_hint)
frame_info = instance_data.frame_info[frame_id]
except Exception: # nosec
pass
if frame_info is not None:
image_info[frame] = (frame_info['height'], frame_info['width'])

dataset = Dataset.import_from(temp_dir, 'yolo',
env=dm_env, image_info=image_info)
if load_data_callback is not None:
load_data_callback(dataset, instance_data)
import_dm_annotations(dataset, instance_data)
4 changes: 3 additions & 1 deletion cvat/apps/dataset_manager/formats/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def make_exporter(name):
import cvat.apps.dataset_manager.formats.mot
import cvat.apps.dataset_manager.formats.mots
import cvat.apps.dataset_manager.formats.pascal_voc
import cvat.apps.dataset_manager.formats.yolo
# import cvat.apps.dataset_manager.formats.yolo
import cvat.apps.dataset_manager.formats.imagenet
import cvat.apps.dataset_manager.formats.camvid
import cvat.apps.dataset_manager.formats.widerface
Expand All @@ -117,3 +117,5 @@ def make_exporter(name):
import cvat.apps.dataset_manager.formats.lfw
import cvat.apps.dataset_manager.formats.cityscapes
import cvat.apps.dataset_manager.formats.openimages
#Audino Export Formats
import cvat.apps.dataset_manager.formats.aud_common_voice
Loading