Project-MONAI / Project-MONAI/MONAILabel

3D Slicer fetching wrong sample due to local cache

Open
#1,484 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
891
Forks
269
Avg merge
15h 41m
Merged PRs (30d)
1

Description

I am using MONAI label with the radiology app and 3D Slicer to annotate and auto-segment MRI images. I want to create a new model for every patient so I re-start the MONAI label server and specify a new study directory. Recently I had the problem that Slicer was fetching samples from a previous patient even though that patient was not selected... talking with @nvahmadi, who has had a similar issue, it turned out that the MONAI label client UI checks whether a file of that name is already in Slicer's cache. If so, it saves the download time from the server and uses the image from Slicer's cache. As my two patients had the same filenames, Slicer was using the image from the cache.

A nice solution would be that the MONAI Label settings in Slicer's application settings panel include a checkbox "Use Slicer local cache to avoid downloads". Alternatively, the UI could have a button "Clear Slicer local cache" that can be pressed if such issues occur.

My workaround at the moment is to manually empty the Slicer cache in the Application Settings menu. Thanks to @nvahmadi for the hint!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the MONAI Label client UI but no files or tests. Start by tracing how the UI checks Slicer's local cache and how Application Settings exposes cache controls. Clarify whether the intended result is a cache-use checkbox or a clear-cache button, then verify that samples with duplicate filenames no longer come from the wrong patient.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.