Code Monkey home page Code Monkey logo

napari-monailabel's People

Contributors

bhoeckendorf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

napari-monailabel's Issues

Connect server to plugin

Hi,

I dont really manage to connect the plugin to a running monai_label server. What I try:

Follow the quickstart guide from the monai page:

https://docs.monai.io/projects/label/en/latest/quickstart.html

# download Radiology sample app to local directory
monailabel apps --name radiology --download --output .

# download Task 2 MSD dataset
monailabel datasets --download --name Task09_Spleen --output .

# start the Radiology app in MONAI label server
# and start annotating the downloaded images using deepedit model
monailabel start_server --app radiology --studies Task09_Spleen/imagesTr --conf models deepedit

Then I try to connect to the server with the plugin but get following error:

Traceback (most recent call last):
  File "/home/mmederacke/anaconda3/envs/monai_label/lib/python3.9/site-packages/napari_monailabel/ui/qitemmodels.py", line 28, in rowCount
    if self.client.is_connected():
  File "/home/mmederacke/anaconda3/envs/monai_label/lib/python3.9/site-packages/napari_monailabel/client/client.py", line 27, in is_connected
    return self.url is not None and isinstance(self.info, dict)
  File "/home/mmederacke/anaconda3/envs/monai_label/lib/python3.9/site-packages/napari_monailabel/client/client.py", line 32, in info
    self._info = self._request("GET", "info").json()
  File "/home/mmederacke/anaconda3/envs/monai_label/lib/python3.9/site-packages/napari_monailabel/client/client.py", line 157, in _request
    raise ValueError(f"Server response error status code: {r.status_code}")
ValueError: Server response error status code: 404
Traceback (most recent call last):
  File "/home/mmederacke/anaconda3/envs/monai_label/lib/python3.9/site-packages/napari_monailabel/ui/qitemmodels.py", line 28, in rowCount
    if self.client.is_connected():
  File "/home/mmederacke/anaconda3/envs/monai_label/lib/python3.9/site-packages/napari_monailabel/client/client.py", line 27, in is_connected
    return self.url is not None and isinstance(self.info, dict)
...
    self._info = self._request("GET", "info").json()
  File "/home/mmederacke/anaconda3/envs/monai_label/lib/python3.9/site-packages/napari_monailabel/client/client.py", line 157, in _request
    raise ValueError(f"Server response error status code: {r.status_code}")
ValueError: Server response error status code: 404

The server runs in 3Dslicer.

Any ideas? It would be lovely to use napari with monai_labels

Best,

Malte

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.