-
Notifications
You must be signed in to change notification settings - Fork 27
bug: encord-active start error #684
Description
Provide environment information
System Information:
System: Linux
Release: 4.14.0_1-0-0-50
Machine: x86_64
Processor: x86_64
Python: 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0]
CPU Info:
Physical cores: 40
Total cores: 80
Total CPU Usage: 35.4%
Memory Information:
Total: 502.69GB
Available: 181.58GB
Used: 291.29GB
Describe the bug
I have import my coco project, and the process is correct. But when I start my project, an error may occur. The error is as following.
/root/anaconda3/envs/encord/lib/python3.10/site-packages/encord_active/db/scripts/migrate_disk_t │
│ o_db.py:172 in _assign_metrics │
│ │
│ 169 │ │ │
│ 170 │ │ metrics_dict[metric_column_name] = score │
│ 171 │ elif metric_column_name not in metrics_derived: │
│ ❱ 172 │ │ raise ValueError( │
│ 173 │ │ │ f"Duplicate metric assignment for, column={metric_column_name}," f"identifie │
│ 174 │ │ ) │
│ 175 │ else: │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ description = 'Possible duplicates' │ │
│ │ description_dict = ({}, {'metric_label_duplicates': 'Possible duplicates'}) │ │
│ │ error_identifier = '92d97e68-1677-468f-b52d-9af4bd5815ad_2cb51c6d-82ad-4973-b157-3472528b… │ │
│ │ metric_column_name = 'metric_label_duplicates' │ │
│ │ metric_types = { │ │
│ │ │ 'metric_width': MetricDefinition( │ │
│ │ │ │ title='Width', │ │
│ │ │ │ short_desc='Width in pixels', │ │
│ │ │ │ long_desc='', │ │
│ │ │ │ type=<MetricType.UINT: 'uint'> │ │
│ │ │ ), │ │
│ │ │ 'metric_height': MetricDefinition( │ │
│ │ │ │ title='Height', │ │
│ │ │ │ short_desc='Height in pixels', │ │
│ │ │ │ long_desc='', │ │
│ │ │ │ type=<MetricType.UINT: 'uint'> │ │
│ │ │ ), │ │
│ │ │ 'metric_area': MetricDefinition( │ │
│ │ │ │ title='Area', │ │
│ │ │ │ short_desc='Area in pixels', │ │
│ │ │ │ long_desc='', │ │
│ │ │ │ type=<MetricType.UINT: 'uint'> │ │
│ │ │ ), │ │
│ │ │ 'metric_aspect_ratio': MetricDefinition( │ │
│ │ │ │ title='Aspect Ratio', │ │
│ │ │ │ short_desc='Aspect ratio = (Width / Height)', │ │
│ │ │ │ long_desc='', │ │
│ │ │ │ type=<MetricType.UFLOAT: 'ufloat'> │ │
│ │ │ ), │ │
│ │ │ 'metric_brightness': MetricDefinition( │ │
│ │ │ │ title='Brightness', │ │
│ │ │ │ short_desc='Brightness of the image data', │ │
│ │ │ │ long_desc='', │ │
│ │ │ │ type=<MetricType.NORMAL: 'normal'> │ │
│ │ │ ), │ │
│ │ │ 'metric_contrast': MetricDefinition( │ │
│ │ │ │ title='Contrast', │ │
│ │ │ │ short_desc='Contrast of the image data', │ │
│ │ │ │ long_desc='', │ │
│ │ │ │ type=<MetricType.NORMAL: 'normal'> │ │
│ │ │ ), │ │
│ │ │ 'metric_sharpness': MetricDefinition( │ │
│ │ │ │ title='Sharpness', │ │
│ │ │ │ short_desc='', │ │
│ │ │ │ long_desc='', │ │
│ │ │ │ type=<MetricType.NORMAL: 'normal'> │ │
│ │ │ ), │ │
│ │ │ 'metric_red': MetricDefinition( │ │
│ │ │ │ title='Red', │ │
│ │ │ │ short_desc='Redness of the image data', │ │
│ │ │ │ long_desc='', │ │
│ │ │ │ type=<MetricType.NORMAL: 'normal'> │ │
│ │ │ ), │ │
│ │ │ 'metric_green': MetricDefinition( │ │
│ │ │ │ title='Green', │ │
│ │ │ │ short_desc='Greenness of the image data', │ │
│ │ │ │ long_desc='', │ │
│ │ │ │ type=<MetricType.NORMAL: 'normal'> │ │
│ │ │ ), │ │
│ │ │ 'metric_blue': MetricDefinition( │ │
│ │ │ │ title='Blue', │ │
│ │ │ │ short_desc='Blueness of the image data', │ │
│ │ │ │ long_desc='', │ │
│ │ │ │ type=<MetricType.NORMAL: 'normal'> │ │
│ │ │ ), │ │
│ │ │ ... +10 │ │
│ │ } │ │
│ │ metrics_derived = set() │ │
│ │ metrics_dict = { │ │
│ │ │ 'feature_hash': 'c25f8b8b', │ │
│ │ │ 'annotation_type': <AnnotationType.BOUNDING_BOX: 'bounding_box'>, │ │
│ │ │ 'annotation_email': 'robot@cord.tech', │ │
│ │ │ 'annotation_manual': False, │ │
│ │ │ 'metric_label_confidence': 1.0, │ │
│ │ │ 'metric_label_duplicates': 0.7081959106059806 │ │
│ │ } │ │
│ │ score = 0.808920385862211 │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: Duplicate metric assignment for, column=metric_label_duplicates,identifier=92d97e68-1677-468f-b52d-9af4bd5815ad_2cb51c6d-82ad-4973-b157-3472528b6749_00000_ffed7d4d_038e8d70
To reproduce
I have try another projects, not all projects is eroor. Some are right but some are wrong.
Additional information
No response