Skip to content

Commit

Permalink
prevent warning for max workers
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardorei committed May 6, 2022
1 parent 636a4aa commit 7e93625
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions comet/cli/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
--print_cache_info Print information about COMET cache. (default: False)
"""
import json
import multiprocessing
import os
from itertools import combinations
from typing import Dict, Generator, List, Tuple, Union
Expand Down Expand Up @@ -341,7 +340,7 @@ def get_cfg() -> Namespace:
"--num_workers",
help="Number of workers to use when loading data.",
type=int,
default=multiprocessing.cpu_count(),
default=2,
)
parser.add_argument(
"--disable_bar", action="store_true", help="Disables progress bar."
Expand Down

0 comments on commit 7e93625

Please sign in to comment.