Hello, I annotate pictures for the detection task in Label Studio v1.13.1.
I have connected the S3 storages to this task:
-
The Source Cloud Storage which stores the original images.
I activate option “Treat every bucket object as a source file” for this storage. -
Target Cloud Storage which stores the annotations in some Labels Studios JSON format files without extensions.
Here, I have a number of separate markup files for each image.
The data is stored in S3 repositories and I wanted to try to test the possibility of restoring my labeling project in Label Studio.
I copy my pictures from Source Cloud Storage to new bucket.
Then I copy annotations files from Target Cloud Storage to other new bucket.
After that, I successfully connected the new buckets to my new project as The Source Cloud Storage and Target Cloud Storage.
I have successfully synchronized the project with these storages.
All images were successfully uploaded to the Label studio project, but the labeling from the files in the Target Source was not.
I also tried downloading labeling files from Target Source, manually adding the json extension to them and uploading them via the Data manager UI.
And I got this Error:
Runtime error
Validation error
Error at item 0: "image" key is expected in task data [assume: item["data"] = task root with values] :: {'data': {'id': 8, 'result': [{'id': '4e00d354f6', 'type': 'rectanglelabels', 'value': {'x': 19.366741617267444, 'y': 80.85469948080951, 'width': 0.9425660448662186, 'height': 0.3924094337491686, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'f3edb13034', 'type': 'rectanglelabels', 'value': {'x': 20.06262438930789, 'y': 81.64151520373808, 'width': 1.1654671308440148, 'height': 0.3812244463319253, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '501e513da8', 'type': 'rectanglelabels', 'value': {'x': 22.304097238813934, 'y': 78.55719830195243, 'width': 1.1513524896814302, 'height': 0.4116285671843882, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '3ffc726279', 'type': 'rectanglelabels', 'value': {'x': 24.622000909810808, 'y': 75.92536788377356, 'width': 1.1900473507297453, 'height': 0.3822590362445197, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '68a1673a68', 'type': 'rectanglelabels', 'value': {'x': 22.44054489151523, 'y': 75.03936918536088, 'width': 0.9989273942466875, 'height': 0.35552660539308123, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'e8d2980230', 'type': 'rectanglelabels', 'value': {'x': 24.429020258341122, 'y': 74.62957454057182, 'width': 1.801152747050434, 'height': 0.5361344957497208, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'a415be122e', 'type': 'rectanglelabels', 'value': {'x': 21.272408173586914, 'y': 73.92547283270952, 'width': 1.2529958013281945, 'height': 0.4255061390738936, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'e8bb275c92', 'type': 'rectanglelabels', 'value': {'x': 26.22421987415616, 'y': 68.59716447379685, 'width': 1.1581876957547104, 'height': 0.41249557895763034, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'e45dcc8d61', 'type': 'rectanglelabels', 'value': {'x': 35.01015815982987, 'y': 64.67310257261903, 'width': 1.1558576119777013, 'height': 0.3966812161543487, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'd7f71ba2b9', 'type': 'rectanglelabels', 'value': {'x': 34.49267059439376, 'y': 62.91367669865887, 'width': 1.4707882508439951, 'height': 0.4561192568070211, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'c5bc9b9b3c', 'type': 'rectanglelabels', 'value': {'x': 33.55213833681982, 'y': 60.13401363524057, 'width': 1.4922182927119965, 'height': 0.43117523495037546, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '5ec3352aa0', 'type': 'rectanglelabels', 'value': {'x': 37.47102559287029, 'y': 59.99603240902801, 'width': 1.0649568093608044, 'height': 0.34595622216297983, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'e0da0852db', 'type': 'rectanglelabels', 'value': {'x': 36.07928721051732, 'y': 59.673670002121284, 'width': 0.5660765776444101, 'height': 0.14075555190530475, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '3c6231f709', 'type': 'rectanglelabels', 'value': {'x': 34.91414392632331, 'y': 59.284642529873075, 'width': 1.0063911567571087, 'height': 0.43302928846061656, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '9d5b5c2aec', 'type': 'rectanglelabels', 'value': {'x': 38.547511999614656, 'y': 57.96990300346268, 'width': 1.1469899213038228, 'height': 0.42520345794626635, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'a546c8c6ae', 'type': 'rectanglelabels', 'value': {'x': 40.737892752556135, 'y': 56.84037479922473, 'width': 1.6057858898253694, 'height': 0.5686770173760395, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '9382486011', 'type': 'rectanglelabels', 'value': {'x': 38.16271538085472, 'y': 53.895253915657925, 'width': 1.0803905065184318, 'height': 0.39390013588897277, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '555d2d167e', 'type': 'rectanglelabels', 'value': {'x': 37.797872456031016, 'y': 52.69030336338992, 'width': 1.2064507061046221, 'height': 0.45469388412953055, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '9694eab228', 'type': 'rectanglelabels', 'value': {'x': 41.352866724966916, 'y': 53.00501011761678, 'width': 1.1978871249683605, 'height': 0.40158884603356937, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '2bde94e1bc', 'type': 'rectanglelabels', 'value': {'x': 41.14250590503634, 'y': 50.99575308134218, 'width': 1.3565620842835742, 'height': 0.4527339966979574, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'b1f7360444', 'type': 'rectanglelabels', 'value': {'x': 41.626198123612845, 'y': 50.64493323108709, 'width': 1.034100605232618, 'height': 0.28222379014935745, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '037e39556c', 'type': 'rectanglelabels', 'value': {'x': 45.18133037046969, 'y': 47.75435993451618, 'width': 1.6011880339084918, 'height': 0.3900175988868527, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '588afe74c7', 'type': 'rectanglelabels', 'value': {'x': 45.64834354702631, 'y': 47.299666050386726, 'width': 1.2620475128376112, 'height': 0.3684588371394436, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '673e1f61fa', 'type': 'rectanglelabels', 'value': {'x': 46.020842152136936, 'y': 47.07819877061675, 'width': 0.950705395133205, 'height': 0.21362773004362104, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '7d65aa1f28', 'type': 'rectanglelabels', 'value': {'x': 47.884044996264755, 'y': 42.61201568943787, 'width': 1.2071733392799429, 'height': 0.400517942444323, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '5ad3776f33', 'type': 'rectanglelabels', 'value': {'x': 49.78722568267885, 'y': 40.404344395660786, 'width': 1.314106340960299, 'height': 0.43409076997252083, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '48b614c8ec', 'type': 'rectanglelabels', 'value': {'x': 51.93298673592515, 'y': 39.9686338840093, 'width': 1.038419696003563, 'height': 0.42437231989861035, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '470a2f21f7', 'type': 'rectanglelabels', 'value': {'x': 51.413776887923405, 'y': 39.395245329642485, 'width': 1.0981518024108021, 'height': 0.38549851960251397, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'f7c2595519', 'type': 'rectanglelabels', 'value': {'x': 53.83556685569085, 'y': 36.032447908274726, 'width': 1.579146123911112, 'height': 0.5365911122672298, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '5bacd73efe', 'type': 'rectanglelabels', 'value': {'x': 61.4545399071386, 'y': 31.35520987086526, 'width': 1.3512281266456583, 'height': 0.44763750542078634, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '1749070e65', 'type': 'rectanglelabels', 'value': {'x': 61.34872083697962, 'y': 30.3968064938746, 'width': 1.1802896286964923, 'height': 0.5538079393987978, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'b8fd4234ea', 'type': 'rectanglelabels', 'value': {'x': 64.49887315632823, 'y': 26.121294422868345, 'width': 1.2128493425915674, 'height': 0.4533764477979744, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '0b867ca134', 'type': 'rectanglelabels', 'value': {'x': 65.27216636133628, 'y': 24.7209924828341, 'width': 0.9849313453260171, 'height': 0.34146707144277555, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '666f12c37d', 'type': 'rectanglelabels', 'value': {'x': 68.324541348975, 'y': 24.41599887455377, 'width': 1.180387818721174, 'height': 0.41116404225836933, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '9694a9a873', 'type': 'rectanglelabels', 'value': {'x': 69.43465028187146, 'y': 22.498065774143722, 'width': 1.5338047041481255, 'height': 0.7375252393826425, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '072f3a7e28', 'type': 'rectanglelabels', 'value': {'x': 70.50354799282135, 'y': 21.173715475297588, 'width': 1.1617897912560802, 'height': 0.4429179733851639, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '3b6eb0ba1a', 'type': 'rectanglelabels', 'value': {'x': 70.23850693753387, 'y': 20.556915803058786, 'width': 1.4611392182707605, 'height': 0.4502881867625536, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '99d9466c79', 'type': 'rectanglelabels', 'value': {'x': 70.59682891107317, 'y': 17.84479953356051, 'width': 1.4808967611590589, 'height': 0.4115763606344523, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'cd5ba2aecd', 'type': 'rectanglelabels', 'value': {'x': 72.16364800991086, 'y': 17.2229807029915, 'width': 1.2787265548576756, 'height': 0.5113524480610296, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '8d1e530f52', 'type': 'rectanglelabels', 'value': {'x': 75.04431980377444, 'y': 14.996932685375175, 'width': 1.0080202895987842, 'height': 0.4137582050043116, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '48a82be51b', 'type': 'rectanglelabels', 'value': {'x': 74.98226124866747, 'y': 13.886331081263178, 'width': 1.1152777909611868, 'height': 0.40346292731509154, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'db7f699484', 'type': 'rectanglelabels', 'value': {'x': 82.99833850041189, 'y': 7.366319209897662, 'width': 1.0154458089238474, 'height': 0.39035774463951767, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': '30366ed6c1', 'type': 'rectanglelabels', 'value': {'x': 83.74269244179499, 'y': 7.056948549208237, 'width': 1.1119361346587218, 'height': 0.39359722799753694, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'f44ecae8ad', 'type': 'rectanglelabels', 'value': {'x': 83.88405090977301, 'y': 5.976246623138925, 'width': 1.0321851595547316, 'height': 0.37238238450387834, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}, {'id': 'bcb5b463a0', 'type': 'rectanglelabels', 'value': {'x': 86.35857333659523, 'y': 4.303533112170379, 'width': 1.2787265548575304, 'height': 0.447210677572502, 'rotation': 0, 'rectanglelabels': ['scallop']}, 'to_name': 'image', 'from_name': 'label_rectangles', 'image_rotation': 0, 'original_width': 6125, 'original_height': 17375}], 'created_username': 'Anton Shiryaev med_phisiker@mail.ru, 1', 'created_ago': '8\xa0minutes', 'completed_by': {'id': 1, 'first_name': 'Anton', 'last_name': 'Shiryaev', 'email': 'med_phisiker@mail.ru'}, 'task': {'id': 53, 'data': {'image': '/data/local-files/?d=/Zone_1_10_1.png'}, 'meta': {}, 'created_at': '2024-10-10T17:33:02.181050Z', 'updated_at': '2024-10-10T17:33:02.181064Z', 'is_labeled': True, 'overlap': 1, 'inner_id': 7, 'total_annotations': 1, 'cancelled_annotations': 0, 'total_predictions': 0, 'comment_count': 0, 'unresolved_comment_count': 0, 'last_comment_updated_at': None, 'project': 5, 'updated_by': None, 'file_upload': 13, 'comment_authors': []}, 'was_cancelled': False, 'ground_truth': False, 'created_at': '2024-10-10T17:33:02.182563Z', 'updated_at': '2024-10-10T17:33:02.182575Z', 'draft_created_at': None, 'lead_time': None, 'import_id': None, 'last_action': None, 'project': 5, 'updated_by': None, 'parent_prediction': None, 'parent_annotation': None, 'last_created_by': None}, 'file_upload_id': 26}
I wanted to ask how to restore the labeling for a project from files that were saved in Target Source?