import warnings warnings.filterwarnings('ignore', 'Consider increasing the value of the `num_workers` argument', UserWarning) warnings.filterwarnings('ignore', 'Your val_dataloader has `shuffle=True`', UserWarning)