MCPcopy
hub / github.com/photonixapp/photonix / run

Function run

photonix/classifiers/style/assemble_dataset.py:32–38  ·  view source on GitHub ↗
(image_path, images_per_style=500)

Source from the content-addressed store, hash-verified

30
31
32def run(image_path, images_per_style=500):
33 for class_id, style, group_ids in STYLE_MAPPING:
34 print('Get images for style: {}'.format(style))
35 get_images_for_style(style, group_ids, image_path, images_per_style)
36
37 # fetch_images(url_file, img_info_file, image_path)
38 # generate_train_test_dataset(img_info_file, train_file, test_file, train_ratio=0.8)
39
40
41def get_images_for_style(style, group_ids, image_path, num_images):

Callers 1

Calls 1

get_images_for_styleFunction · 0.85

Tested by

no test coverage detected