Training fails on Windows app - weights cannot be download when using
- Run Geti on Win (ARL in my case but it doesn't matter)
- Create a project, upload images, annotate.
- Start a training (DEIM_D_FINE_M in my case)
Training fails. It's log reveals CERTIFICATE_VERIFY_FAILED when downloading https://github.com/eugene123tw/DEIM/releases/download/poc/deim_dfine_hgnetv2_m_coco_90e.pth Full log line:
{"text": "2026-03-30 09:42:47.922 | ERROR | app.execution.base:_report_progress:122 - Failed: Train Model\nTraceback (most recent call last):\n\n File \"urllib\\request.py\", line 1319, in do_open\n\n File \"http\\client.py\", line 1358, in request\n\n File \"http\\client.py\", line 1404, in _send_request\n\n File \"http\\client.py\", line 1353, in endheaders\n\n File \"http\\client.py\", line 1113, in _send_output\n\n File \"http\\client.py\", line 1057, in send\n\n File \"http\\client.py\", line 1499, in connect\n\n File \"ssl.py\", line 455, in wrap_socket\n\n File \"ssl.py\", line 1076, in _create\n\n File \"ssl.py\", line 1372, in do_handshake\n\nssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1032)\n\n\nDuring handling of the above exception, another exception occurred:\n\n\nTraceback (most recent call last):\n\n File \"jsonargparse\\_typehints.py\", line 821, in adapt_typehints\n\n File \"jsonargparse\\_typehints.py\", line 1073, in adapt_typehints\n\n File \"jsonargparse\\_typehints.py\", line 1392, in adapt_class_type\n\n File \"jsonargparse\\_common.py\", line 155, in default_class_instantiator\n\n File \"otx\\backend\\native\\models\\detection\\deim.py\", line 89, in __init__\n super().__init__(\n\n File \"otx\\backend\\native\\models\\detection\\rtdetr.py\", line 82, in __init__\n super().__init__(\n\n File \"otx\\backend\\native\\models\\detection\\base.py\", line 81, in __init__\n super().__init__(\n\n File \"otx\\backend\\native\\models\\base.py\", line 171, in __init__\n self.model = self._create_model()\n │ │ └ <function DEIMDFine._create_model at 0x000002413A8756C0>\n │ └ DEIMDFine()\n └ DEIMDFine()\n\n File \"otx\\backend\\native\\models\\detection\\deim.py\", line 165, in _create_model\n load_checkpoint(model, self._pretrained_weights[self.model_name], map_location=\"cpu\")\n │ │ │ │ │ └ 'deim_dfine_hgnetv2_m'\n │ │ │ │ └ DEIMDFine()\n │ │ │ └ {'deim_dfine_hgnetv2_n': 'https://github.com/eugene123tw/DEIM/releases/download/poc/deim_dfine_hgnetv2_n_coco_160e.pth', 'dei...\n │ │ └ DEIMDFine()\n │ └ DETR(\n │ (backbone): HGNetv2Module(\n │ (stem): HGNetv2StemBlock(\n │ (stem1): ConvBNAct(\n │ (conv): Conv2d(3, 24, kern...\n └ <function load_checkpoint at 0x00000241383AD260>\n\n File \"otx\\backend\\native\\models\\utils\\utils.py\", line 101, in load_checkpoint\n load_from_http(checkpoint, map_location),\n │ │ └ 'cpu'\n │ └ 'https://github.com/eugene123tw/DEIM/releases/download/poc/deim_dfine_hgnetv2_m_coco_90e.pth'\n └ <function load_from_http at 0x00000241383AD300>\n\n File \"otx\\backend\\native\\models\\utils\\utils.py\", line 136, in load_from_http\n checkpoint = load_url(filename, model_dir=model_dir, map_location=map_location, progress=progress)\n │ │ │ │ └ True\n │ │ │ └ 'cpu'\n │ │ └ None\n │ └ 'https://github.com/eugene123tw/DEIM/releases/download/poc/deim_dfine_hgnetv2_m_coco_90e.pth'\n └ <function load_state_dict_from_url at 0x0000024106DB5BC0>\n\n File \"torch\\hub.py\", line 880, in load_state_dict_from_url\n download_url_to_file(url, cached_file, hash_prefix, progress=progress)\n │ │ │ │ └ True\n │ │ │ └ None\n │ │ └ 'C:\\\\Users\\\\Local_Admin/.cache\\\\torch\\\\hub\\\\checkpoints\\\\deim_dfine_hgnetv2_m_coco_90e.pth'\n │ └ 'https://github.com/eugene123tw/DEIM/releases/download/poc/deim_dfine_hgnetv2_m_coco_90e.pth'\n └ <function download_url_to_file at 0x0000024106DB5940>\n\n File \"torch\\hub.py\", line 736, in download_url_to_file\n with urlopen(req) as u:\n │ └ <urllib.request.Request object at 0x000002413D643D90>\n └ <function urlopen at 0x00000240DC7D94E0>\n\n File \"urllib\\request.py\", line 189, in urlopen\n\n File \"urllib\\request.py\", line 495, in open\n\n File \"urllib\\request.py\", line 604, in http_response\n\n File \"urllib\\request.py\", line 527, in error\n\n File \"urllib\\request.py\", line 466, in _call_chain\n\n File \"urllib\\request.py\", line 720, in http_error_302\n\n File \"urllib\\request.py\", line 489, in open\n\n File \"urllib\\request.py\", line 506, in _open\n\n File \"urllib\\request.py\", line 466, in _call_chain\n\n File \"urllib\\request.py\", line 1367, in https_open\n\n File \"urllib\\request.py\", line 1322, in do_open\n\nurllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1032)>\n\n\nThe above exception was the direct cause of the following exception:\n\n\nTraceback (most recent call last):\n\n File \"main.py\", line 20, in <module>\n\n File \"pyi_rth_multiprocessing.py\", line 48, in _freeze_support\n\n File \"multiprocessing\\spawn.py\", line 122, in spawn_main\n\n File \"multiprocessing\\spawn.py\", line 135, in _main\n\n File \"multiprocessing\\process.py\", line 313, in _bootstrap\n\n File \"multiprocessing\\process.py\", line 108, in run\n\n File \"app\\core\\jobs\\exec\\process_run.py\", line 149, in _entrypoint\n\n File \"app\\execution\\base.py\", line 92, in run\n\n File \"app\\execution\\training\\otx_trainer.py\", line 590, in execute\n\n> File \"app\\execution\\base.py\", line 41, in wrapper\n\n File \"app\\execution\\training\\otx_trainer.py\", line 385, in train_model\n\n File \"jsonargparse\\_deprecated.py\", line 140, in patched_instantiate_classes\n\n File \"jsonargparse\\_core.py\", line 1204, in instantiate_classes\n\n File \"jsonargparse\\_typehints.py\", line 611, in instantiate_classes\n\n File \"jsonargparse\\_typehints.py\", line 826, in adapt_typehints\n\n File \"jsonargparse\\_typehints.py\", line 710, in raise_union_unexpected_value\n\nValueError: Does not validate against any of the Union subtypes\nSubtypes: (<class 'otx.backend.native.models.base.OTXModel'>, <class 'NoneType'>)\nErrors:\n - <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1032)>\n - Expected a <class 'NoneType'>\nGiven value type: <class 'dict'>\nGiven value: {'class_path': 'otx.backend.native.models.DEIMDFine', 'init_args': {'label_info': ['vehicle'], 'data_input_params': {'input_size': torch.Size([640, 640]), 'mean': (0.0, 0.0, 0.0), 'std': (1.0, 1.0, 1.0)}, 'model_name': 'deim_dfine_hgnetv2_m', 'optimizer': {'class_path': 'torch.optim.AdamW', 'init_args': {'lr': 0.0004, 'betas': (0.9, 0.999), 'eps': 1e-08, 'weight_decay': 0.0001, 'amsgrad': False, 'maximize': False, 'capturable': False, 'differentiable': False}}, 'scheduler': {'class_path': 'otx.backend.native.schedulers.LinearWarmupSchedulerCallable', 'init_args': {'main_scheduler_callable': {'class_path': 'lightning.pytorch.cli.ReduceLROnPlateau', 'init_args': {'monitor': 'val/f1-score', 'mode': 'max', 'factor': 0.5, 'patience': 15, 'threshold': 0.0001, 'threshold_mode': 'rel', 'cooldown': 0, 'min_lr': 0.0, 'eps': 1e-08}}, 'num_warmup_steps': 30, 'warmup_interval': 'step'}}, 'metric': <function _mean_ap_f_measure_callable at 0x00000241382F0400>, 'multi_scale': False, 'torch_compile': False, 'tile_config': {'enable_tiler': False, 'enable_adaptive_tiling': True, 'tile_size': (400, 400), 'overlap': 0.2, 'iou_threshold': 0.45, 'max_num_instances': 1500, 'object_tile_ratio': 0.03, 'sampling_ratio': 1.0}}}\n", "record": {"elapsed": {"repr": "0:00:19.234402", "seconds": 19.234402}, "exception": {"type": "ValueError", "value": "Does not validate against any of the Union subtypes\nSubtypes: (<class 'otx.backend.native.models.base.OTXModel'>, <class 'NoneType'>)\nErrors:\n - <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1032)>\n - Expected a <class 'NoneType'>\nGiven value type: <class 'dict'>\nGiven value: {'class_path': 'otx.backend.native.models.DEIMDFine', 'init_args': {'label_info': ['vehicle'], 'data_input_params': {'input_size': torch.Size([640, 640]), 'mean': (0.0, 0.0, 0.0), 'std': (1.0, 1.0, 1.0)}, 'model_name': 'deim_dfine_hgnetv2_m', 'optimizer': {'class_path': 'torch.optim.AdamW', 'init_args': {'lr': 0.0004, 'betas': (0.9, 0.999), 'eps': 1e-08, 'weight_decay': 0.0001, 'amsgrad': False, 'maximize': False, 'capturable': False, 'differentiable': False}}, 'scheduler': {'class_path': 'otx.backend.native.schedulers.LinearWarmupSchedulerCallable', 'init_args': {'main_scheduler_callable': {'class_path': 'lightning.pytorch.cli.ReduceLROnPlateau', 'init_args': {'monitor': 'val/f1-score', 'mode': 'max', 'factor': 0.5, 'patience': 15, 'threshold': 0.0001, 'threshold_mode': 'rel', 'cooldown': 0, 'min_lr': 0.0, 'eps': 1e-08}}, 'num_warmup_steps': 30, 'warmup_interval': 'step'}}, 'metric': <function _mean_ap_f_measure_callable at 0x00000241382F0400>, 'multi_scale': False, 'torch_compile': False, 'tile_config': {'enable_tiler': False, 'enable_adaptive_tiling': True, 'tile_size': (400, 400), 'overlap': 0.2, 'iou_threshold': 0.45, 'max_num_instances': 1500, 'object_tile_ratio': 0.03, 'sampling_ratio': 1.0}}}", "traceback": true}, "extra": {}, "file": {"name": "base.py", "path": "app\\execution\\base.py"}, "function": "_report_progress", "level": {"icon": "❌", "name": "ERROR", "no": 40}, "line": 122, "message": "Failed: Train Model", "module": "base", "name": "app.execution.base", "process": {"id": 9440, "name": "job-train-bfb87d9c-32ab-4918-becd-da9b1e121c02"}, "thread": {"id": 4664, "name": "MainThread"}, "time": {"repr": "2026-03-30 09:42:47.922553-07:00", "timestamp": 1774888967.922553}}}
The same for practically every project type and model.
I was unable to reproduce the error, @piotrgrubicki could you please attach full backend log if the problem occurs again?
It must have been fixed in the meantime.
I can reproduce the problem on systems located in the lab. Log attached. Strangely, the weights can be found in ..\LocalState\pretrained_weights\detection It works fine on my corporate laptop.
Based on the logs, it seems that you are using an old Geti version. Please try again on latest develop.
Clue:
"Downloading pretrained weights for object-detection-dfine-l from https://github.com/eugene123tw/DEIM/releases/download/poc/deim_dfine_hgnetv2_l_coco_50e.pth"
This link has been replaced already.
Works on the latest develop.