多机并行计算
This commit is contained in:
@ -203,11 +203,11 @@ class PairGenerator:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
original_path = '/home/lc/data_center/contrast_data/v1/extra'
|
||||
original_path = '/home/lc/data_center/electornic/v1/val'
|
||||
parent_dir = str(Path(original_path).parent)
|
||||
generator = PairGenerator(original_path)
|
||||
|
||||
# Example usage:
|
||||
pairs = generator.get_pairs(original_path,
|
||||
output_txt=os.sep.join([parent_dir, 'extra_cross_same.txt'])) # Individual pairs
|
||||
output_txt=os.sep.join([parent_dir, 'cross_same.txt'])) # Individual pairs
|
||||
# groups = generator.get_group_pairs('val') # Group pairs
|
||||
|
Reference in New Issue
Block a user