File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+ ## \[ 2.4.4\]
6
+
7
+ ### Bug fixes
8
+
9
+ - Fix torch.load() to be able to load all OTX custom snapshots
10
+ (< https://github.com/open-edge-platform/training_extensions/pull/4392 > )
11
+
5
12
## \[ 2.4.3\]
6
13
7
14
### Enhancements
Original file line number Diff line number Diff line change 3
3
# Copyright (C) 2024-2025 Intel Corporation
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
6
- __version__ = "2.4.3 "
6
+ __version__ = "2.4.4 "
7
7
8
8
import os
9
9
from pathlib import Path
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ def train(
266
266
# load the model state from the checkpoint incrementally.
267
267
# This means only the model weights are loaded. If there is a mismatch in label_info,
268
268
# perform incremental weight loading for the model's classification layer.
269
- ckpt = torch .load (checkpoint )
269
+ ckpt = torch .load (checkpoint , weights_only = False )
270
270
self .model .load_state_dict_incrementally (ckpt )
271
271
272
272
with override_metric_callable (model = self .model , new_metric_callable = metric ) as model :
You can’t perform that action at this time.
0 commit comments