def download_data(self):
     # 根据数据ID下载训练数据
     data_helper = DataHelper()
     data_helper.download_from_ids("FacialBeautyPrediction")
Beispiel #2
0
 def download_data(self):
     # 根据数据ID下载训练数据
     data_helper = DataHelper()
     data_helper.download_from_ids("ArrhythmiaClassification")
Beispiel #3
0
 def download_data(self):
     # 根据数据ID下载训练数据
     data_helper = DataHelper()
     data_helper.download_from_ids("ButterflyClassification")
 def download_data(self):
     # 下载数据
     data_helper = DataHelper()
     # 数据下载解压路径:./data/input/MedicalQA
     data_helper.download_from_ids("MedicalQA")
     print('==' * 8 + '数据下载完成!' + '==' * 8)
Beispiel #5
0
if not os.path.exists(MODEL_PATH):
    os.makedirs(MODEL_PATH)
model_path = os.path.join(MODEL_PATH, 'my_model.h5')

parser = argparse.ArgumentParser()
parser.add_argument("-e",
                    "--EPOCHS",
                    default=10,
                    type=int,
                    help="train epochs")
parser.add_argument("-b", "--BATCH", default=5, type=int, help="batch size")
args = parser.parse_args()

# 下载数据
data_helper = DataHelper()
data_helper.download_from_ids(
    "FaceLandmarkLocalization")  # ./data/input/PostRecommendation

# 读取数据
df = pd.read_csv(os.path.join(DATA_PATH, 'FaceLandmarkLocalization/train.csv'))

df['label'] = df['label'].apply(eval)  # 转成dict类型
image_path_list = df['image_path'].values
label_list = df['label'].values

# ##################################  下面提供一种数据处理的方法 ###################################


class Main(FlyAI):
    def get_line(self, array, label, name):
Beispiel #6
0
 def download_data(self):
     # 下载数据
     data_helper = DataHelper()
     data_helper.download_from_ids("MedicalClass")
     print('=*=数据下载完成=*=')
Beispiel #7
0
 def download_data(self):
     # 根据数据ID下载训练数据
     data_helper = DataHelper()
     data_helper.download_from_ids("TBDetection")
     print('download data done...')
Beispiel #8
0
 def download_data(self):
     # 根据数据ID下载训练数据
     data_helper = DataHelper()
     data_helper.download_from_ids("PsychologicalQA")
 def download_data(self):
     # 根据数据ID下载训练数据
     data_helper = DataHelper()
     data_helper.download_from_ids(DataID)
 def download_data(self):
     # 根据数据ID下载训练数据
     data_helper = DataHelper()
     data_helper.download_from_ids("CardDetection")
Beispiel #11
0
 def download_data(self):
     
     data_helper = DataHelper()
     data_helper.download_from_ids(DataID)