From 8b88062ceac3b4d23e941cd368c932efa1d39d61 Mon Sep 17 00:00:00 2001 From: RichardObi Date: Tue, 30 Apr 2024 20:04:21 +0200 Subject: [PATCH] working solution without tqdm. --- src/frd_score/frd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frd_score/frd.py b/src/frd_score/frd.py index e570f39..bec9217 100644 --- a/src/frd_score/frd.py +++ b/src/frd_score/frd.py @@ -338,8 +338,8 @@ def compute_features( process_pairs=partial(process_image_mask_pair, resize_size=resize_size, feature_extractor=feature_extractor, verbose=verbose) with mp.Pool(processes=num_workers) as p: # features_list, list_radiomics_feature_dict_list, num_features_list = tqdm(p.imap(process_pairs, zip(files, mask_paths)), total=len(files)) - results = tqdm(p.imap(process_pairs, zip(files, mask_paths)), total=len(files)) - #results = p.map(process_pairs, zip(files, mask_paths)) + #results = tqdm(p.imap(process_pairs, zip(files, mask_paths)), total=len(files)) + results = p.map(process_pairs, zip(files, mask_paths)) # get the first element of results features_list = []