run error in monailabel
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- python, pytorch
- Ambito
- machine-learning
Direzione di ricerca
Inizia riproducendo il comando monailabel start_server segnalato con PyTorch 2.7.1 e ispeziona l'espressione torch.load nell'errore. Conferma se il comportamento di caricamento del checkpoint è causato dalla versione di PyTorch segnalata e definisci il completamento come un modo documentato o verificato per avviare l'applicazione senza questo errore.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello, thank you very much for your great work on MONAI Label.
When I tried to run the following command:
monailabel start_server --app apps/monaibundle --studies datasets/venous_liver --conf models pancreas_ct_dints_segmentation
I encountered this error:
File "D:\anaconda\envs\monailabel\lib\site-packages\monai\bundle\config_item.py", line 374, in evaluate return eval(value[len(self.prefix) :], globals_, locals) File "<string>", line 1, in <module> File "D:\anaconda\envs\monailabel\lib\site-packages\torch\serialization.py", line 1524, in load raise pickle.UnpicklingError(_get_wo_message(str(e))) from None _pickle.UnpicklingError: Weights only load failed. This file can still be loaded, to do so you have two options, do those steps only if you trust the source of the checkpoint. (1) In PyTorch 2.6, we changed the default value of the weights_onlyargument intorch.loadfromFalsetoTrue. Re-running torch.loadwithweights_onlyset toFalsewill likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source. (2) Alternatively, to load withweights_only=Trueplease check the recommended steps in the following error message. WeightsUnpickler error: Unsupported global: GLOBAL numpy.core.multiarray._reconstruct was not an allowed global by default. Please usetorch.serialization.add_safe_globals([numpy.core.multiarray._reconstruct])or thetorch.serialization.safe_globals([numpy.core.multiarray._reconstruct])context manager to allowlist this global if you trust this class/function.
`RuntimeError: Failed to evaluate ConfigExpression:
"$torch.load(__local_refs['arch_ckpt_path'], map_location=torch.device('cuda'))"
[2025-07-07 21:02:28,103] [19056] [MainThread] [ERROR] (uvicorn.error:59) - Application startup failed. Exiting.`
Here is my PyTorch version:
Name: torch Version: 2.7.1+cu128 Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration Home-page: https://pytorch.org/ Author: PyTorch Team Author-email: packages@pytorch.org License: BSD-3-Clause Location: d:\anaconda\envs\monailabel\lib\site-packages Requires: filelock, fsspec, jinja2, networkx, sympy, typing-extensions Required-by: lpips, monai, pytorch-ignite, sam2, torchaudio, torchio, torchvision
Could you please advise me on how to properly resolve this issue?
Thank you very much for your time and help!
- Lingua principale
- Jupyter Notebook
- Stelle
- 2.5k
- Fork
- 803
- Merge medio
- 6g 22h
- PR unite (30g)
- 3
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Project-MONAI/tutorials
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
Project-MONAI/tutorials#2076 ·
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
Project-MONAI/tutorials#2069 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
Project-MONAI/tutorials#1704 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 62/100
Project-MONAI/tutorials#2071 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
Project-MONAI/tutorials#2067 ·
Tutte le issue di Project-MONAI/tutorials
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
bancolombia/sentinel#21 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
infer-actively/pymdp#454 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
huggingface/sentence-transformers#4055 · 1 commento ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
UKGovernmentBEIS/inspect_evals#2486 · 1 commento ·