Commit 26ad5d1 pfinashx
committed
1 parent a396e8b commit 26ad5d1 Copy full SHA for 26ad5d1
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 36
36
from ote_sdk .entities .datasets import DatasetEntity
37
37
from ote_sdk .entities .model import (
38
38
ModelEntity ,
39
+ ModelFormat ,
39
40
ModelOptimizationType ,
40
41
ModelPrecision ,
41
42
OptimizationMethod ,
@@ -183,6 +184,8 @@ def optimize(
183
184
self .trainer = Trainer (** self .config .trainer , logger = False , callbacks = callbacks )
184
185
self .trainer .fit (model = self .model , datamodule = datamodule )
185
186
self .compression_ctrl = nncf_callback .nncf_ctrl
187
+ output_model .model_format = ModelFormat .BASE_FRAMEWORK
188
+ output_model .optimization_type = ModelOptimizationType .NN
186
189
self .save_model (output_model )
187
190
188
191
logger .info ("Training completed." )
Original file line number Diff line number Diff line change @@ -409,7 +409,7 @@ def test(self,
409
409
test_parameters ,
410
410
test_case_fx , data_collector_fx ,
411
411
cur_test_expected_metrics_callback_fx ):
412
- if "nncf " in test_parameters ["test_stage" ]:
413
- pytest .xfail ("NNCF not yet supported for Anomaly Classification " )
412
+ if "nncf_graph " in test_parameters ["test_stage" ]:
413
+ pytest .xfail ("The models has no a reference NNCF graph yet " )
414
414
test_case_fx .run_stage (test_parameters ['test_stage' ], data_collector_fx ,
415
415
cur_test_expected_metrics_callback_fx )
You can’t perform that action at this time.
0 commit comments