Warnings observed in logs from classification/detection training jobs
When running training job for classification/detection models from scratch I noticed that in logs there is always a few warnings - similar for both types of models - saying about some configuration adjustments made by the library. Below are warnings from Yolo Tiny detection model:
{"text": "2026-06-02 14:38:15.244 | WARNING | app.execution.training.getitune_trainer:train_model:387 - Argument 'weights_path' (value='/application/data/pretrained_weights/detection/yolox_tiny_8x8.pth') is not used in model training yet; the weights location will be determined internally by getitune\n", "record": {"elapsed": {"repr": "0:00:07.556878", "seconds": 7.556878}, "exception": null, "extra": {}, "file": {"name": "getitune_trainer.py", "path": "/application/backend/app/execution/training/getitune_trainer.py"}, "function": "train_model", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 387, "message": "Argument 'weights_path' (value='/application/data/pretrained_weights/detection/yolox_tiny_8x8.pth') is not used in model training yet; the weights location will be determined internally by getitune", "module": "getitune_trainer", "name": "app.execution.training.getitune_trainer", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:38:15.244253+00:00", "timestamp": 1780411095.244253}}}
{"text": "2026-06-02 14:38:15.244 | WARNING | getitune.data.module:from_vision_datasets:312 - The provided train SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.\n", "record": {"elapsed": {"repr": "0:00:07.557232", "seconds": 7.557232}, "exception": null, "extra": {}, "file": {"name": "module.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/data/module.py"}, "function": "from_vision_datasets", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 312, "message": "The provided train SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.", "module": "module", "name": "getitune.data.module", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:38:15.244607+00:00", "timestamp": 1780411095.244607}}}
{"text": "2026-06-02 14:38:15.244 | WARNING | getitune.data.module:from_vision_datasets:312 - The provided val SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.\n", "record": {"elapsed": {"repr": "0:00:07.557397", "seconds": 7.557397}, "exception": null, "extra": {}, "file": {"name": "module.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/data/module.py"}, "function": "from_vision_datasets", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 312, "message": "The provided val SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.", "module": "module", "name": "getitune.data.module", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:38:15.244772+00:00", "timestamp": 1780411095.244772}}}
{"text": "2026-06-02 14:38:15.244 | WARNING | getitune.data.module:from_vision_datasets:312 - The provided test SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.\n", "record": {"elapsed": {"repr": "0:00:07.557564", "seconds": 7.557564}, "exception": null, "extra": {}, "file": {"name": "module.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/data/module.py"}, "function": "from_vision_datasets", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 312, "message": "The provided test SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.", "module": "module", "name": "getitune.data.module", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:38:15.244939+00:00", "timestamp": 1780411095.244939}}}
{"text": "2026-06-02 14:38:16.098 | WARNING | getitune.backend.lightning.models.base:tile_config:940 - Assign new tile_config to the model. It is usually not recommended. Please create a new model instance by giving tile_config to its initializer such as `LightningModel(..., tile_config=tile_config)`.\n", "record": {"elapsed": {"repr": "0:00:08.410731", "seconds": 8.410731}, "exception": null, "extra": {}, "file": {"name": "base.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/backend/lightning/models/base.py"}, "function": "tile_config", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 940, "message": "Assign new tile_config to the model. It is usually not recommended. Please create a new model instance by giving tile_config to its initializer such as `LightningModel(..., tile_config=tile_config)`.", "module": "base", "name": "getitune.backend.lightning.models.base", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:38:16.098106+00:00", "timestamp": 1780411096.098106}}}
{"text": "2026-06-02 14:38:16.817 | WARNING | getitune.backend.lightning.callbacks.adaptive_train_scheduling:on_train_start:65 - You are using AdaptiveTrainScheduling hook. This hook will temporarily update Trainer.check_val_every_n_epoch adaptively: 1 => 5\n", "record": {"elapsed": {"repr": "0:00:09.130536", "seconds": 9.130536}, "exception": null, "extra": {}, "file": {"name": "adaptive_train_scheduling.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/backend/lightning/callbacks/adaptive_train_scheduling.py"}, "function": "on_train_start", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 65, "message": "You are using AdaptiveTrainScheduling hook. This hook will temporarily update Trainer.check_val_every_n_epoch adaptively: 1 => 5", "module": "adaptive_train_scheduling", "name": "getitune.backend.lightning.callbacks.adaptive_train_scheduling", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:38:16.817911+00:00", "timestamp": 1780411096.817911}}}
{"text": "2026-06-02 14:38:16.818 | WARNING | getitune.backend.lightning.callbacks.adaptive_train_scheduling:_change_early_stopping_patience:167 - The patience of early stopping will be changed due to the effect of adaptive interval: 10 --> 5.\n", "record": {"elapsed": {"repr": "0:00:09.130715", "seconds": 9.130715}, "exception": null, "extra": {}, "file": {"name": "adaptive_train_scheduling.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/backend/lightning/callbacks/adaptive_train_scheduling.py"}, "function": "_change_early_stopping_patience", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 167, "message": "The patience of early stopping will be changed due to the effect of adaptive interval: 10 --> 5.", "module": "adaptive_train_scheduling", "name": "getitune.backend.lightning.callbacks.adaptive_train_scheduling", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:38:16.818090+00:00", "timestamp": 1780411096.81809}}}
{"text": "2026-06-02 14:38:16.818 | WARNING | getitune.backend.lightning.callbacks.adaptive_train_scheduling:_change_lr_scheduler_frequency:127 - The frequency of LRscheduler will be changed due to the effect of adaptive interval: 1 --> 5.\n", "record": {"elapsed": {"repr": "0:00:09.130819", "seconds": 9.130819}, "exception": null, "extra": {}, "file": {"name": "adaptive_train_scheduling.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/backend/lightning/callbacks/adaptive_train_scheduling.py"}, "function": "_change_lr_scheduler_frequency", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 127, "message": "The frequency of LRscheduler will be changed due to the effect of adaptive interval: 1 --> 5.", "module": "adaptive_train_scheduling", "name": "getitune.backend.lightning.callbacks.adaptive_train_scheduling", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:38:16.818194+00:00", "timestamp": 1780411096.818194}}}
{"text": "2026-06-02 14:38:16.818 | WARNING | getitune.backend.lightning.callbacks.adaptive_train_scheduling:_change_lr_scheduler_frequency:145 - The patience of LRscheduler will be changed due to the effect of adaptive interval: 4 --> 2.\n", "record": {"elapsed": {"repr": "0:00:09.130973", "seconds": 9.130973}, "exception": null, "extra": {}, "file": {"name": "adaptive_train_scheduling.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/backend/lightning/callbacks/adaptive_train_scheduling.py"}, "function": "_change_lr_scheduler_frequency", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 145, "message": "The patience of LRscheduler will be changed due to the effect of adaptive interval: 4 --> 2.", "module": "adaptive_train_scheduling", "name": "getitune.backend.lightning.callbacks.adaptive_train_scheduling", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:38:16.818348+00:00", "timestamp": 1780411096.818348}}}
{"text": "2026-06-02 14:38:16.818 | WARNING | getitune.backend.lightning.callbacks.adaptive_train_scheduling:on_train_start:78 - Trainer.log_every_n_steps is higher than the number of iterations in a training epoch. To ensure logging at the last batch, temporarily update Trainer.log_every_n_steps: 50 => 4\n", "record": {"elapsed": {"repr": "0:00:09.131059", "seconds": 9.131059}, "exception": null, "extra": {}, "file": {"name": "adaptive_train_scheduling.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/backend/lightning/callbacks/adaptive_train_scheduling.py"}, "function": "on_train_start", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 78, "message": "Trainer.log_every_n_steps is higher than the number of iterations in a training epoch. To ensure logging at the last batch, temporarily update Trainer.log_every_n_steps: 50 => 4", "module": "adaptive_train_scheduling", "name": "getitune.backend.lightning.callbacks.adaptive_train_scheduling", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:38:16.818434+00:00", "timestamp": 1780411096.818434}}}
{"text": "2026-06-02 14:39:10.869 | WARNING | getitune.backend.lightning.models.base:tile_config:940 - Assign new tile_config to the model. It is usually not recommended. Please create a new model instance by giving tile_config to its initializer such as `LightningModel(..., tile_config=tile_config)`.\n", "record": {"elapsed": {"repr": "0:01:03.182027", "seconds": 63.182027}, "exception": null, "extra": {}, "file": {"name": "base.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/backend/lightning/models/base.py"}, "function": "tile_config", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 940, "message": "Assign new tile_config to the model. It is usually not recommended. Please create a new model instance by giving tile_config to its initializer such as `LightningModel(..., tile_config=tile_config)`.", "module": "base", "name": "getitune.backend.lightning.models.base", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:39:10.869402+00:00", "timestamp": 1780411150.869402}}}
{"text": "2026-06-02 14:39:13.563 | WARNING | getitune.backend.lightning.models.base:tile_config:940 - Assign new tile_config to the model. It is usually not recommended. Please create a new model instance by giving tile_config to its initializer such as `LightningModel(..., tile_config=tile_config)`.\n", "record": {"elapsed": {"repr": "0:01:05.876313", "seconds": 65.876313}, "exception": null, "extra": {}, "file": {"name": "base.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/backend/lightning/models/base.py"}, "function": "tile_config", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 940, "message": "Assign new tile_config to the model. It is usually not recommended. Please create a new model instance by giving tile_config to its initializer such as `LightningModel(..., tile_config=tile_config)`.", "module": "base", "name": "getitune.backend.lightning.models.base", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:39:13.563688+00:00", "timestamp": 1780411153.563688}}}
{"text": "2026-06-02 14:39:20.557 | WARNING | getitune.backend.lightning.models.base:tile_config:940 - Assign new tile_config to the model. It is usually not recommended. Please create a new model instance by giving tile_config to its initializer such as `LightningModel(..., tile_config=tile_config)`.\n", "record": {"elapsed": {"repr": "0:01:12.870068", "seconds": 72.870068}, "exception": null, "extra": {}, "file": {"name": "base.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/backend/lightning/models/base.py"}, "function": "tile_config", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 940, "message": "Assign new tile_config to the model. It is usually not recommended. Please create a new model instance by giving tile_config to its initializer such as `LightningModel(..., tile_config=tile_config)`.", "module": "base", "name": "getitune.backend.lightning.models.base", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:39:20.557443+00:00", "timestamp": 1780411160.557443}}}
{"text": "2026-06-02 14:39:29.903 | WARNING | getitune.data.module:from_vision_datasets:312 - The provided train SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.\n", "record": {"elapsed": {"repr": "0:01:22.216353", "seconds": 82.216353}, "exception": null, "extra": {}, "file": {"name": "module.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/data/module.py"}, "function": "from_vision_datasets", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 312, "message": "The provided train SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.", "module": "module", "name": "getitune.data.module", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:39:29.903728+00:00", "timestamp": 1780411169.903728}}}
{"text": "2026-06-02 14:39:29.903 | WARNING | getitune.data.module:from_vision_datasets:312 - The provided val SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.\n", "record": {"elapsed": {"repr": "0:01:22.216460", "seconds": 82.21646}, "exception": null, "extra": {}, "file": {"name": "module.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/data/module.py"}, "function": "from_vision_datasets", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 312, "message": "The provided val SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.", "module": "module", "name": "getitune.data.module", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:39:29.903835+00:00", "timestamp": 1780411169.903835}}}
{"text": "2026-06-02 14:39:29.903 | WARNING | getitune.data.module:from_vision_datasets:312 - The provided test SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.\n", "record": {"elapsed": {"repr": "0:01:22.216547", "seconds": 82.216547}, "exception": null, "extra": {}, "file": {"name": "module.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/data/module.py"}, "function": "from_vision_datasets", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 312, "message": "The provided test SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.", "module": "module", "name": "getitune.data.module", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:39:29.903922+00:00", "timestamp": 1780411169.903922}}}
{"text": "2026-06-02 14:39:38.835 | WARNING | getitune.data.module:from_vision_datasets:312 - The provided train SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.\n", "record": {"elapsed": {"repr": "0:01:31.148310", "seconds": 91.14831}, "exception": null, "extra": {}, "file": {"name": "module.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/data/module.py"}, "function": "from_vision_datasets", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 312, "message": "The provided train SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.", "module": "module", "name": "getitune.data.module", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:39:38.835685+00:00", "timestamp": 1780411178.835685}}}
{"text": "2026-06-02 14:39:38.835 | WARNING | getitune.data.module:from_vision_datasets:312 - The provided val SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.\n", "record": {"elapsed": {"repr": "0:01:31.148413", "seconds": 91.148413}, "exception": null, "extra": {}, "file": {"name": "module.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/data/module.py"}, "function": "from_vision_datasets", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 312, "message": "The provided val SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.", "module": "module", "name": "getitune.data.module", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:39:38.835788+00:00", "timestamp": 1780411178.835788}}}
{"text": "2026-06-02 14:39:38.835 | WARNING | getitune.data.module:from_vision_datasets:312 - The provided test SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.\n", "record": {"elapsed": {"repr": "0:01:31.148494", "seconds": 91.148494}, "exception": null, "extra": {}, "file": {"name": "module.py", "path": "/application/backend/.venv/lib/python3.13/site-packages/getitune/data/module.py"}, "function": "from_vision_datasets", "level": {"icon": "⚠️", "name": "WARNING", "no": 30}, "line": 312, "message": "The provided test SubsetConfig contains augmentations_cpu which will be overridden by the transforms of the provided VisionDataset. When building DataModule from pre-constructed datasets, developers should set up the transforms when creating the datasets.", "module": "module", "name": "getitune.data.module", "process": {"id": 149044, "name": "job-train-26deac33-0529-45e0-9738-806c6a5b0607"}, "thread": {"id": 128072078467968, "name": "MainThread"}, "time": {"repr": "2026-06-02 14:39:38.835869+00:00", "timestamp": 1780411178.835869}}}
Review them and decide if they should be removed - or it is worth to keep them.
Highlighted logs will be retained because they are useful. While they may seem noisy from the app's perspective, they make sense when the library is used directly.
@itallix Consider this log line for example:
Assign new tile_config to the model. It is usually not recommended. Please create a new model instance by giving tile_config to its initializer such as
LightningModel(..., tile_config=tile_config).
Does it mean that the app is not using the library API in the recommended way? Is there perhaps a way to refactor the app code to initialize tile_config in the way that the library suggests?
@itallix Consider this log line for example:
Assign new tile_config to the model. It is usually not recommended. Please create a new model instance by giving tile_config to its initializer such as
LightningModel(..., tile_config=tile_config).Does it mean that the app is not using the library API in the recommended way? Is there perhaps a way to refactor the app code to initialize
tile_configin the way that the library suggests?
This particular log line comes from the setter which is triggered in LightningModel.on_load_checkpoint callback. The callback can modify the internal state directly, bypassing the setter - which would eliminate the warning. However, I'm not sure if we can remove this setter completely - I'll create a separate fix for that.