|
@@ -1,10 +1,17 @@
|
|
|
-# -*- coding: utf-8 -*-
|
|
|
-# @File : json_split.py
|
|
|
-# @Author : zhaoHL
|
|
|
-# @Contact : huilin16@qq.com
|
|
|
-# @Time Create First: 2021/8/1 10:25
|
|
|
-# @Contributor : zhaoHL
|
|
|
-# @Time Modify Last : 2021/8/1 10:25
|
|
|
+# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
|
|
|
+#
|
|
|
+# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
+# you may not use this file except in compliance with the License.
|
|
|
+# You may obtain a copy of the License at
|
|
|
+#
|
|
|
+# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
+#
|
|
|
+# Unless required by applicable law or agreed to in writing, software
|
|
|
+# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
+# See the License for the specific language governing permissions and
|
|
|
+# limitations under the License.
|
|
|
+
|
|
|
'''
|
|
|
@File Description:
|
|
|
# json数据集划分,可以通过val_split_rate、val_split_num控制划分比例或个数, keep_val_inTrain可以设定是否在train中保留val相关信息
|
|
@@ -16,6 +23,7 @@ python ./coco_tools/json_Split.py \
|
|
|
|
|
|
import json
|
|
|
import argparse
|
|
|
+
|
|
|
import pandas as pd
|
|
|
|
|
|
def get_annno(df_img_split, df_anno):
|