Skip to content

Commit

Permalink
working solution without tqdm.
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardObi committed Apr 30, 2024
1 parent 6464757 commit 8b88062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frd_score/frd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 8b88062

Please sign in to comment.