# VIAME/DIVE web ValueError : GPU detection and initialization

**URL:** https://discourse.kitware.com/t/viame-dive-web-valueerror-gpu-detection-and-initialization/1552
**Category:** VIAME & DIVE
**Created:** [August 22, 2025, 4:27pm UTC](https://discourse.kitware.com/t/viame-dive-web-valueerror-gpu-detection-and-initialization/1552 "2025-08-22T16:27:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![amelierobillard](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/a/c67d28/32.png) [@amelierobillard](https://discourse.kitware.com/u/amelierobillard)
#### Post date: [August 22, 2025, 4:27pm UTC](https://discourse.kitware.com/t/viame-dive-web-valueerror-gpu-detection-and-initialization/1552/1 "2025-08-22T16:27:21Z")

</div>

```auto
Hello to the VIAME/DIVE response team!

After trying to train a model or run a pipeline on VIAME/DIVE web, I received an error code. My last successful attempt was on February 28, 2025. I don't understand why this is happening now. Can you help?

Thanks :)
-----

ValueError: invalid literal for int() with base 10: 'Failed to initialize NVML: Unknown Error'

  File "/opt/dive/local/venv/lib/python3.11/site-packages/celery/app/trace.py", line 453, in trace_task
    R = retval = fun(*args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^
  File "/opt/dive/local/venv/lib/python3.11/site-packages/girder_worker/task.py", line 154, in __call__
    results = super(). __call__ (*_t_args, **_t_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/dive/local/venv/lib/python3.11/site-packages/celery/app/trace.py", line 736, in __protected_call__
    return self.run(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/dive/src/dive_tasks/tasks.py", line 342, in train_pipeline
    conf = Config()
           ^^^^^^^^
  File "/opt/dive/src/dive_tasks/tasks.py", line 66, in __init__
    self.gpu_process_env = get_gpu_environment()
                           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/dive/src/dive_tasks/tasks.py", line 53, in get_gpu_environment
    gpus = [gpu.id for gpu in getGPUs() if gpu.uuid == gpu_uuid]
                              ^^^^^^^^^
  File "/opt/dive/local/venv/lib/python3.11/site-packages/GPUtil/GPUtil.py", line 102, in getGPUs
    deviceIds = int(vals[i])

```

---

<div class="post-metadata">

### Author: ![matt\_dawkins](https://discourse.kitware.com/user_avatar/discourse.kitware.com/matt_dawkins/32/523_2.png) [@matt\_dawkins](https://discourse.kitware.com/u/matt_dawkins)
#### Post date: [August 25, 2025, 2:34pm UTC](https://discourse.kitware.com/t/viame-dive-web-valueerror-gpu-detection-and-initialization/1552/2 "2025-08-25T14:34:46Z")

</div>

Hey, unfortunately this issue is unrelated to you and every 4-5 days the web server loses access to the GPU and needs a reboot ever since an NVIDIA driver update a month or two ago. We’re looking into the issue now, however.
