From 95454fe751ce0a825adc3071b7f753b518e01429 Mon Sep 17 00:00:00 2001 From: shijinpjlab Date: Wed, 3 Sep 2025 18:16:55 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0artimuse=E6=8A=BD?= =?UTF-8?q?=E6=A0=B7=E6=B5=8B=E8=AF=95=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dingo/model/rule/rule_image.py | 20 +++++--- test/data/artimuse/test_artimuse_AVA.jsonl | 50 +++++++++++++++++++ .../artimuse/test_artimuse_FLICKR-AES.jsonl | 50 +++++++++++++++++++ test/data/artimuse/test_artimuse_PARA.jsonl | 50 +++++++++++++++++++ test/data/artimuse/test_artimuse_TAD66K.jsonl | 50 +++++++++++++++++++ 5 files changed, 214 insertions(+), 6 deletions(-) create mode 100644 test/data/artimuse/test_artimuse_AVA.jsonl create mode 100644 test/data/artimuse/test_artimuse_FLICKR-AES.jsonl create mode 100644 test/data/artimuse/test_artimuse_PARA.jsonl create mode 100644 test/data/artimuse/test_artimuse_TAD66K.jsonl diff --git a/dingo/model/rule/rule_image.py b/dingo/model/rule/rule_image.py index 29d3957b..8e8c96b1 100644 --- a/dingo/model/rule/rule_image.py +++ b/dingo/model/rule/rule_image.py @@ -265,35 +265,43 @@ def eval(cls, input_data: Data) -> ModelRes: "img_url": input_data.content, "style": 1 }, - timeout=30 # 设置超时时间 + headers={ + "Content-Type": "application/json", + "User-Agent": "dingo", + }, + # timeout=30 # 设置超时时间 ) response_create_task_json = response_create_task.json() # print(response_create_task_json) task_id = response_create_task_json.get('data').get('id') - time.sleep(2) + time.sleep(5) request_time = 0 - while (request_time < 5): + while (True): request_time += 1 response_get_status = requests.post( cls.dynamic_config.refer_path[0] + 'api/v1/task/status', json={ "id": task_id }, - timeout=30 # 设置超时时间 + headers={ + "Content-Type": "application/json", + "User-Agent": "dingo", + }, + # timeout=30 # 设置超时时间 ) response_get_status_json = response_get_status.json() # print(response_get_status_json) status_data = response_get_status_json.get('data') if status_data['phase'] == 'Succeeded': break - time.sleep(2) + time.sleep(5) return ModelRes( error_status=True if status_data['score_overall'] < cls.dynamic_config.threshold else False, type="Artimuse_Succeeded", name="BadImage" if status_data['score_overall'] < cls.dynamic_config.threshold else "GoodImage", - reason=[json.dumps(status_data['aspects'], ensure_ascii=False)], + reason=[json.dumps(status_data, ensure_ascii=False)], ) except Exception as e: return ModelRes( diff --git a/test/data/artimuse/test_artimuse_AVA.jsonl b/test/data/artimuse/test_artimuse_AVA.jsonl new file mode 100644 index 00000000..c5e43ebb --- /dev/null +++ b/test/data/artimuse/test_artimuse_AVA.jsonl @@ -0,0 +1,50 @@ +{"id": 1, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/6671.jpg"} +{"id": 2, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/2626.jpg"} +{"id": 3, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/3504.jpg"} +{"id": 4, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/7112.jpg"} +{"id": 5, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/540.jpg"} +{"id": 6, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/4012.jpg"} +{"id": 7, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/5613.jpg"} +{"id": 8, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/3261.jpg"} +{"id": 9, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/6015.jpg"} +{"id": 10, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/5960.jpg"} +{"id": 11, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/9436.jpg"} +{"id": 12, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/1006.jpg"} +{"id": 13, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/8921.jpg"} +{"id": 14, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/576.jpg"} +{"id": 15, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/2595.jpg"} +{"id": 16, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/595.jpg"} +{"id": 17, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/9316.jpg"} +{"id": 18, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/4164.jpg"} +{"id": 19, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/4121.jpg"} +{"id": 20, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/9450.jpg"} +{"id": 21, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/9014.jpg"} +{"id": 22, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/4394.jpg"} +{"id": 23, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/2920.jpg"} +{"id": 24, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/6222.jpg"} +{"id": 25, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/2802.jpg"} +{"id": 26, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/8960.jpg"} +{"id": 27, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/3478.jpg"} +{"id": 28, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/6324.jpg"} +{"id": 29, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/1930.jpg"} +{"id": 30, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/1330.jpg"} +{"id": 31, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/1779.jpg"} +{"id": 32, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/1124.jpg"} +{"id": 33, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/4726.jpg"} +{"id": 34, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/2166.jpg"} +{"id": 35, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/5143.jpg"} +{"id": 36, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/1620.jpg"} +{"id": 37, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/493.jpg"} +{"id": 38, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/8728.jpg"} +{"id": 39, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/6220.jpg"} +{"id": 40, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/7462.jpg"} +{"id": 41, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/8614.jpg"} +{"id": 42, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/5494.jpg"} +{"id": 43, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/6746.jpg"} +{"id": 44, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/4423.jpg"} +{"id": 45, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/2766.jpg"} +{"id": 46, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/1350.jpg"} +{"id": 47, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/5461.jpg"} +{"id": 48, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/4447.jpg"} +{"id": 49, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/6111.jpg"} +{"id": 50, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/AVA/8118.jpg"} diff --git a/test/data/artimuse/test_artimuse_FLICKR-AES.jsonl b/test/data/artimuse/test_artimuse_FLICKR-AES.jsonl new file mode 100644 index 00000000..1f3731f6 --- /dev/null +++ b/test/data/artimuse/test_artimuse_FLICKR-AES.jsonl @@ -0,0 +1,50 @@ +{"id": 1, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_28_96361281_9e25609502.jpg"} +{"id": 2, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_21_25510686_15f1252c7b.jpg"} +{"id": 3, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_32_38983235_417aac284b.jpg"} +{"id": 4, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_26_35447596_0e0ba48994.jpg"} +{"id": 5, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_30_37459196_4b8abed526.jpg"} +{"id": 6, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_26_36622947_db1d9f54cc.jpg"} +{"id": 7, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_19_104070337_3d2aa31581.jpg"} +{"id": 8, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_23_24430354_ac070f17da.jpg"} +{"id": 9, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_29_185787128_b65ee93493.jpg"} +{"id": 10, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_25_63894659_b767e9770d.jpg"} +{"id": 11, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_22_28615451_199be1a41f.jpg"} +{"id": 12, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_22_28371402_22798a2c1c.jpg"} +{"id": 13, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_29_39367401_58ac7e8673.jpg"} +{"id": 14, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_26_50265084_b0402e2905.jpg"} +{"id": 15, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_28_36630945_423b489109.jpg"} +{"id": 16, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_22_32745878_597d48b925.jpg"} +{"id": 17, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_27_37463701_145e66b0d4.jpg"} +{"id": 18, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_23_37459407_c8f51820e8.jpg"} +{"id": 19, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_15_20253408_1830fdd950.jpg"} +{"id": 20, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_25_101449868_884b67dccc.jpg"} +{"id": 21, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_25_64166574_62b97c156c.jpg"} +{"id": 22, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_26_101450188_65461f9215.jpg"} +{"id": 23, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_12_96360708_218d984efc.jpg"} +{"id": 24, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_25_99974609_038c34106d.jpg"} +{"id": 25, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_30_64350633_f9b9453c70.jpg"} +{"id": 26, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_14_16048066_b41ac0c958.jpg"} +{"id": 27, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_24_67810325_f0dcf6aa8c.jpg"} +{"id": 28, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_24_103574927_27b08027c7.jpg"} +{"id": 29, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_26_44238181_0ccd95313e.jpg"} +{"id": 30, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_14_17520932_c9ce6672ca_b.jpg"} +{"id": 31, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_12_16048172_9c692d3087.jpg"} +{"id": 32, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_27_37459731_492d9783d9.jpg"} +{"id": 33, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_1_130867541_03b04a27fe.jpg"} +{"id": 34, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_4_5743333_902ed3e712.jpg"} +{"id": 35, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_16_20254524_a09872a744.jpg"} +{"id": 36, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_17_20753480_5b133ee19d_b.jpg"} +{"id": 37, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_21_27295405_f8336f3f6d.jpg"} +{"id": 38, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_28_36622182_82e35b0deb.jpg"} +{"id": 39, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_31_57107529_ac3a231035.jpg"} +{"id": 40, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_2_3572895_42ea649de2.jpg"} +{"id": 41, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_30_50264099_adc1a4688f.jpg"} +{"id": 42, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_21_28618876_df54f1ae03.jpg"} +{"id": 43, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_32_60095651_a9df332acc.jpg"} +{"id": 44, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_23_25417051_3505f3057b.jpg"} +{"id": 45, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_1_3071074_111064200d.jpg"} +{"id": 46, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_21_32746061_507ed56842.jpg"} +{"id": 47, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_23_26402563_b869e151a2.jpg"} +{"id": 48, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_20_72491345_63392d2949.jpg"} +{"id": 49, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_27_41962359_ae98085a8b.jpg"} +{"id": 50, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/FLICKR-AES/farm1_10_16048330_d335b9e7ef.jpg"} diff --git a/test/data/artimuse/test_artimuse_PARA.jsonl b/test/data/artimuse/test_artimuse_PARA.jsonl new file mode 100644 index 00000000..ac055a16 --- /dev/null +++ b/test/data/artimuse/test_artimuse_PARA.jsonl @@ -0,0 +1,50 @@ +{"id": 1, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub406_.jpg"} +{"id": 2, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub792_.jpg"} +{"id": 3, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub218_.jpg"} +{"id": 4, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub600_.jpg"} +{"id": 5, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub666_.jpg"} +{"id": 6, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub325_.jpg"} +{"id": 7, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub815_.jpg"} +{"id": 8, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub360_.jpg"} +{"id": 9, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub339_.jpg"} +{"id": 10, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub917_.jpg"} +{"id": 11, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub257_.jpg"} +{"id": 12, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub184_.jpg"} +{"id": 13, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub163_.jpg"} +{"id": 14, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub850_.jpg"} +{"id": 15, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub265_.jpg"} +{"id": 16, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub816_.jpg"} +{"id": 17, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub742_.jpg"} +{"id": 18, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub230_.jpg"} +{"id": 19, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub206_.jpg"} +{"id": 20, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub805_.jpg"} +{"id": 21, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub557_.jpg"} +{"id": 22, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub935_.jpg"} +{"id": 23, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub193_.jpg"} +{"id": 24, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub61_.jpg"} +{"id": 25, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub299_.jpg"} +{"id": 26, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub755_.jpg"} +{"id": 27, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub153_.jpg"} +{"id": 28, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub752_.jpg"} +{"id": 29, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub223_.jpg"} +{"id": 30, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub428_.jpg"} +{"id": 31, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub309_.jpg"} +{"id": 32, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub746_.jpg"} +{"id": 33, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub196_.jpg"} +{"id": 34, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub608_.jpg"} +{"id": 35, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub610_.jpg"} +{"id": 36, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub237_.jpg"} +{"id": 37, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub46_.jpg"} +{"id": 38, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub579_.jpg"} +{"id": 39, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub188_.jpg"} +{"id": 40, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub923_.jpg"} +{"id": 41, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub732_.jpg"} +{"id": 42, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub408_.jpg"} +{"id": 43, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub836_.jpg"} +{"id": 44, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub259_.jpg"} +{"id": 45, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub392_.jpg"} +{"id": 46, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub191_.jpg"} +{"id": 47, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub838_.jpg"} +{"id": 48, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub731_.jpg"} +{"id": 49, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub420_.jpg"} +{"id": 50, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/PARA/iaa_pub253_.jpg"} diff --git a/test/data/artimuse/test_artimuse_TAD66K.jsonl b/test/data/artimuse/test_artimuse_TAD66K.jsonl new file mode 100644 index 00000000..48c8a506 --- /dev/null +++ b/test/data/artimuse/test_artimuse_TAD66K.jsonl @@ -0,0 +1,50 @@ +{"id": 1, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7317295@N0422434099257.jpg"} +{"id": 2, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7148266@N0328635770427.jpg"} +{"id": 3, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/8744268@N0825125201963.jpg"} +{"id": 4, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7652577@N0527907053151.jpg"} +{"id": 5, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7391462@N054822316019.jpg"} +{"id": 6, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/8744268@N0832909973013.jpg"} +{"id": 7, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7558695@N0528927527860.jpg"} +{"id": 8, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7148266@N032624712012.jpg"} +{"id": 9, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/8411024@N0823913797733.jpg"} +{"id": 10, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/8brian33778205575.jpg"} +{"id": 11, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/10thavenue30694544420.jpg"} +{"id": 12, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/10thavenue39551868942.jpg"} +{"id": 13, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/9194189@N0343964899642.jpg"} +{"id": 14, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/2dxtreem33582953021.jpg"} +{"id": 15, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7528322@N051402931894.jpg"} +{"id": 16, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7647973@N0722380742004.jpg"} +{"id": 17, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/1basicofart40773577961.jpg"} +{"id": 18, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/2cme29995968852.jpg"} +{"id": 19, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/58lilu5841568670165.jpg"} +{"id": 20, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/8107354@N0316161240677.jpg"} +{"id": 21, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/9110268@N0539782450995.jpg"} +{"id": 22, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/0529pm16875986862.jpg"} +{"id": 23, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/9131581@N0329096784804.jpg"} +{"id": 24, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/20kanga109947944435.jpg"} +{"id": 25, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7148266@N033193264927.jpg"} +{"id": 26, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/1959dr19834999386.jpg"} +{"id": 27, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/3jnr23951726464.jpg"} +{"id": 28, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/0529pm16510294447.jpg"} +{"id": 29, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/3-bs41578017651.jpg"} +{"id": 30, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/8999293@N0316938848152.jpg"} +{"id": 31, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/1bluecanoe33283187858.jpg"} +{"id": 32, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/8545275@N0637989522486.jpg"} +{"id": 33, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7401855@N0810967877373.jpg"} +{"id": 34, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/8314637@N0734692332690.jpg"} +{"id": 35, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7652577@N0523704728038.jpg"} +{"id": 36, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/8515300@N0231735594517.jpg"} +{"id": 37, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/8999293@N0315841512610.jpg"} +{"id": 38, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7790557@N07512512199.jpg"} +{"id": 39, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7585698@N0333867991323.jpg"} +{"id": 40, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7243127@N0430635331468.jpg"} +{"id": 41, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/123glenrose28394463838.jpg"} +{"id": 42, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/8077006@N043400732371.jpg"} +{"id": 43, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/8314637@N0743376639435.jpg"} +{"id": 44, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7524487@N056750189339.jpg"} +{"id": 45, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7839366@N021050226469.jpg"} +{"id": 46, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/2dm8119281850231.jpg"} +{"id": 47, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/2dxtreem13998360168.jpg"} +{"id": 48, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7652577@N0536566756735.jpg"} +{"id": 49, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/8458761@N086334042267.jpg"} +{"id": 50, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/image_dataset_100/TAD66K/7528991@N028443653631.jpg"} From 7065ae613906e32f51178c9729b8a879af297d01 Mon Sep 17 00:00:00 2001 From: shijinpjlab Date: Thu, 4 Sep 2025 10:29:24 +0800 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0nano?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/data/artimuse/test_artimuse_nano.jsonl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/data/artimuse/test_artimuse_nano.jsonl diff --git a/test/data/artimuse/test_artimuse_nano.jsonl b/test/data/artimuse/test_artimuse_nano.jsonl new file mode 100644 index 00000000..285afc3c --- /dev/null +++ b/test/data/artimuse/test_artimuse_nano.jsonl @@ -0,0 +1,20 @@ +{"id": 1, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/city.png"} +{"id": 2, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/red_panda_sticker.png"} +{"id": 3, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/woman.png"} +{"id": 4, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/fashion_ecommerce_shot.png"} +{"id": 5, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/woman_with_logo.png"} +{"id": 6, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/dress.png"} +{"id": 7, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/photorealistic_example.png"} +{"id": 8, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/minimalist_design.png"} +{"id": 9, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/living_room.png"} +{"id": 10, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/model.png"} +{"id": 11, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/cat.png"} +{"id": 12, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/cat_with_hat.png"} +{"id": 13, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/comic_panel.png"} +{"id": 14, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/cat-banana.png"} +{"id": 15, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/logo_example.png"} +{"id": 16, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/city_style_transfer.png"} +{"id": 17, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/logo.png"} +{"id": 18, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/screenshot-20250610-154256.png"} +{"id": 19, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/product_mockup.png"} +{"id": 20, "content": "https://openxlab.oss-cn-shanghai.aliyuncs.com/artimuse/dingo/nano/living_room_edited.png"} From 1962f638e56b9ec5d1e3681bf4e536f8fb179dc5 Mon Sep 17 00:00:00 2001 From: shijinpjlab Date: Thu, 4 Sep 2025 10:34:47 +0800 Subject: [PATCH 3/4] =?UTF-8?q?feat:=20=E9=87=8D=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{test_artimuse_nano.jsonl => test_artimuse_nano_banana.jsonl} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename test/data/artimuse/{test_artimuse_nano.jsonl => test_artimuse_nano_banana.jsonl} (100%) diff --git a/test/data/artimuse/test_artimuse_nano.jsonl b/test/data/artimuse/test_artimuse_nano_banana.jsonl similarity index 100% rename from test/data/artimuse/test_artimuse_nano.jsonl rename to test/data/artimuse/test_artimuse_nano_banana.jsonl From dfed8376c2c28b289b459d9f675f0b86682090dc Mon Sep 17 00:00:00 2001 From: shijinpjlab Date: Thu, 4 Sep 2025 10:36:26 +0800 Subject: [PATCH 4/4] =?UTF-8?q?feat:=20gradio=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_gradio/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_gradio/header.html b/app_gradio/header.html index 78f11d45..b0800b05 100644 --- a/app_gradio/header.html +++ b/app_gradio/header.html @@ -67,7 +67,7 @@ color: #fafafa; opacity: 0.8; "> - Dingo: A Comprehensive Data Quality Evaluation Tool.
+ Dingo: A Comprehensive AI Data Quality Evaluation Tool.