run error in monailabel
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- python, pytorch
- Área
- machine-learning
Línea de trabajo
Comienza reproduciendo el comando monailabel start_server reportado con PyTorch 2.7.1 e inspecciona la expresión torch.load del error. Confirma si el comportamiento de carga del checkpoint se debe a la versión de PyTorch reportada y define la finalización como una forma documentada o verificada de iniciar la aplicación sin este error.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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!
- Lenguaje dominante
- Jupyter Notebook
- Estrellas
- 2.5k
- Forks
- 803
- Merge medio
- 6 d 22 h
- PR fusionados (30 d)
- 3
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Project-MONAI/tutorials
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Project-MONAI/tutorials#2076 · 2 comentarios ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 76/100
Project-MONAI/tutorials#2069 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Project-MONAI/tutorials#1704 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 62/100
Project-MONAI/tutorials#2071 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Project-MONAI/tutorials#2067 ·
Todos los issues de Project-MONAI/tutorials
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
EveryVoiceTTS/EveryVoice#891 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
vllm-project/vllm#57974 · 4 comentarios ·