File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/otx/algorithms/classification/adapters/mmcls Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,11 @@ All notable changes to this project will be documented in this file.
88
99- Update ModelAPI configuration(< https://github.com/openvinotoolkit/training_extensions/pull/2564 > )
1010- Add Anomaly modelAPI changes (< https://github.com/openvinotoolkit/training_extensions/pull/2563 > )
11+
12+ ### Bug fixes
13+
1114- Fix IBLoss enablement with DeiT-Tiny when class incremental training (< https://github.com/openvinotoolkit/training_extensions/pull/2595 > )
15+ - Fix mmcls bug not wrapping model in DataParallel on CPUs (< https://github.com/openvinotoolkit/training_extensions/pull/2601 > )
1216
1317## \[ v1.4.3\]
1418
Original file line number Diff line number Diff line change @@ -381,6 +381,10 @@ def _train_model(
381381
382382 # Model
383383 model = self .build_model (cfg , fp16 = cfg .get ("fp16" , False ))
384+ if not torch .cuda .is_available ():
385+ # NOTE: mmcls does not wrap models w/ DP for CPU training not like mmdet
386+ # Raw DataContainer "img_metas" is exposed, which results in errors
387+ model = build_data_parallel (model , cfg , distributed = False )
384388 model .train ()
385389
386390 if cfg .distributed :
You can’t perform that action at this time.
0 commit comments