Skip to content

Commit

Permalink
Disable progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderDokuchaev committed Nov 18, 2024
1 parent 427d2cd commit 1c9260d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/cross_fw/examples/run_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,14 @@ def main(argv):
parser.add_argument("-o", "--output", help="Path to the json file to save example metrics", required=True)
args = parser.parse_args(args=argv)

# Disable progress bar for fastdownload module
try:
import fastprogress.fastprogress

fastprogress.fastprogress.NO_BAR = True
except ImportError:
pass

if args.name == "quantization_aware_training_torch_anomalib":
metrics = globals()[args.name](args.data)
else:
Expand Down

0 comments on commit 1c9260d

Please sign in to comment.