Skip to content

Commit 04699f8

Browse files
committed
[refactor] move utils to specific folder of scripts related to metric computations to avoid amibuguity with the other compressai_vision.utils module
1 parent 4360fcb commit 04699f8

File tree

9 files changed

+6
-6
lines changed

9 files changed

+6
-6
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ black:
3030
- python --version
3131
- pip install -U pip black
3232
script:
33-
- black --check compressai_vision data/mpeg-fcm utils
33+
- black --check compressai_vision data/mpeg-fcm scripts/metrics
3434
tags:
3535
- docker
3636

@@ -41,7 +41,7 @@ isort:
4141
- python --version
4242
- pip install -U pip isort
4343
script:
44-
- isort compressai_vision data/mpeg-fcm utils --check-only
44+
- isort compressai_vision data/mpeg-fcm scripts/metrics --check-only
4545
tags:
4646
- docker
4747

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PYTHON_DOCKER_IMAGE = python:3.8-buster
66
GIT_DESCRIBE = $(shell git describe --first-parent)
77
ARCHIVE = compressai_vision.tar.gz
88

9-
src_dirs := compressai_vision utils
9+
src_dirs := compressai_vision scripts/metrics
1010

1111
.PHONY: help
1212
help: ## Show this message
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343

4444
import numpy as np
4545
import pandas as pd
46+
import utils
4647
from detectron2.evaluation import COCOEvaluator
4748
from pycocotools.coco import COCO
4849
from pycocotools.cocoeval import COCOeval
4950

50-
import utils
5151
from compressai_vision.evaluators.evaluators import BaseEvaluator
5252

5353
CLASSES = ["CLASS-AB", "CLASS-C", "CLASS-D"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141

4242
import motmetrics as mm
4343
import torch
44-
4544
import utils
45+
4646
from compressai_vision.evaluators.evaluators import BaseEvaluator, MOT_JDE_Eval
4747

4848
CLASSES = ["TVD", "HIEVE-1080P", "HIEVE-720P"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040

4141
import numpy as np
4242
import pandas as pd
43+
import utils
4344
from compute_overall_map import compute_overall_mAP
4445
from compute_overall_mot import compute_overall_mota
4546
from curve_fitting import (
4647
convert_to_monotonic_points_SFU,
4748
convert_to_monotonic_points_TVD,
4849
)
4950

50-
import utils
5151
from compressai_vision.datasets import get_seq_info
5252
from compressai_vision.evaluators.evaluators import BaseEvaluator
5353

File renamed without changes.

0 commit comments

Comments
 (0)