NVIDIA/ai-assisted-annotation-client

Servers not working

davissilva84 opened this issue · 11 comments

Hi guys, sorry if I'm posting in the wrong session, but I'm new to this.
It seems that the new server address is not working propperly. I keep getting this error message when trying to use tool:

"Failed to fetch models from remote server. Make sure server address is correct and <server_uri>/v1/models is accessible in browser".

In the detais tab, I get this:

Traceback (most recent call last):
File "C:/Users/davi_/AppData/Local/NA-MIC/Slicer 5.1.0-2022-05-29/NA-MIC/Extensions-30976/NvidiaAIAssistedAnnotation/lib/Slicer-5.1/qt-scripted-modules/SegmentEditorNvidiaAIAALib/SegmentEditorEffect.py", line 198, in fetchAIAAModels
models = self.logic.list_models()
File "C:/Users/davi_/AppData/Local/NA-MIC/Slicer 5.1.0-2022-05-29/NA-MIC/Extensions-30976/NvidiaAIAssistedAnnotation/lib/Slicer-5.1/qt-scripted-modules/SegmentEditorNvidiaAIAALib/SegmentEditorEffect.py", line 1076, in list_models
return aiaaClient.model_list(label)
File "C:\Users\davi_\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-29\NA-MIC\Extensions-30976\NvidiaAIAssistedAnnotation\lib\Slicer-5.1\qt-scripted-modules\NvidiaAIAAClientAPI\client_api.py", line 190, in model_list
status, response = AIAAUtils.http_method('GET', self.server_url, selector)
File "C:\Users\davi
\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-29\NA-MIC\Extensions-30976\NvidiaAIAssistedAnnotation\lib\Slicer-5.1\qt-scripted-modules\NvidiaAIAAClientAPI\client_api.py", line 626, in http_method
conn.request(method, selector)
File "C:\Users\davi_\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-29\lib\Python\Lib\http\client.py", line 1285, in request
self.send_request(method, url, body, headers, encode_chunked)
File "C:\Users\davi
\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-29\lib\Python\Lib\http\client.py", line 1331, in send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\davi
\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-29\lib\Python\Lib\http\client.py", line 1280, in endheaders
self.send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\davi
\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-29\lib\Python\Lib\http\client.py", line 1040, in send_output
self.send(msg)
File "C:\Users\davi
\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-29\lib\Python\Lib\http\client.py", line 980, in send
self.connect()
File "C:\Users\davi_\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-29\lib\Python\Lib\http\client.py", line 946, in connect
self.sock = self.create_connection(
File "C:\Users\davi
\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-29\lib\Python\Lib\socket.py", line 844, in create_connection
raise err
File "C:\Users\davi_\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-29\lib\Python\Lib\socket.py", line 832, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] A connection attempt failed because the connected component did not respond
correctly after a period of time or the established connection failed because the connected host did not respond

Our university has started to restrict external access to computers. We have applied for an exception for this server but the case is still being processed. Hopefully the server will become available again in a few days.

Oh, I see. Thanks for the quick reply! I hope everything can return to normal soon.

PS: And I'm sorry if I spammed you with two posts in different sessions. I'm a radiologist and a total newbie with this whole github thing. It wont happen again.

Our university has started to restrict external access to computers. We have applied for an exception for this server but the case is still being processed. Hopefully the server will become available again in a few days.

Hi Andras,

Do you have any news about the restricted access to your university's server?

The same question that the severs not work now.

Have you guys tried MONAILabel.. in that case you don't need a special server. You can even run it on your laptop (if you have some NVIDIA GPU)
https://github.com/Project-MONAI/MONAILabel

Just do pip install monailabel==0.4.0rc6

Our university has started to restrict external access to computers. We have applied for an exception for this server but the case is still being processed. Hopefully the server will become available again in a few days.

Hi Andras,

Do you have any news about the restricted access to your university's server?

Hi
I encounter with same problem and I am waiting for your answer Andras. Thanks a lot for your help.

The server problem has been fixed, the NvidiaAIAssistedAnnotation extension was updated 10 days ago with the new address of the default server. Follow these steps to get the update and the new server address:

  • If you use the Slicer Stable Release (Slicer-5.0.x): uninstall and install the NvidiaAIAssistedAnnotation extension
  • If you use the Slicer Preview Release (Slicer-5.1.x): install the latest Slicer Preview Release and then install the NvidiaAIAssistedAnnotation extension
  • In Segment Editor module / Nvidia AIAA effect, clear the "Nvidia AIAA server" field to use the new default server address.

You can even run it on your laptop (if you have some NVIDIA GPU)

It would be great, but it is hard to get by such laptops. It is not directly related to this issue, so I've created a separate thread to discuss this question here: Project-MONAI/MONAILabel#833

The server problem has been fixed, the NvidiaAIAssistedAnnotation extension was updated 10 days ago with the new address of the default server. Follow these steps to get the update and the new server address:

  • If you use the Slicer Stable Release (Slicer-5.0.x): uninstall and install the NvidiaAIAssistedAnnotation extension
  • If you use the Slicer Preview Release (Slicer-5.1.x): install the latest Slicer Preview Release and then install the NvidiaAIAssistedAnnotation extension
  • In Segment Editor module / Nvidia AIAA effect, clear the "Nvidia AIAA server" field to use the new default server address.

thanks a lot for your help .

The server problem has been fixed, the NvidiaAIAssistedAnnotation extension was updated 10 days ago with the new address of the default server. Follow these steps to get the update and the new server address:

  • If you use the Slicer Stable Release (Slicer-5.0.x): uninstall and install the NvidiaAIAssistedAnnotation extension
  • If you use the Slicer Preview Release (Slicer-5.1.x): install the latest Slicer Preview Release and then install the NvidiaAIAssistedAnnotation extension
  • In Segment Editor module / Nvidia AIAA effect, clear the "Nvidia AIAA server" field to use the new default server address.

Thank you so much, Andras! You're a life saver!

This issue can be closed.