NVIDIA / ai-assisted-annotation-client

Client side integration example source code and libraries for AI-Assisted Annotation SDK
Other
309 stars 64 forks source link

Servers not working #101

Closed davissilva84 closed 2 years ago

davissilva84 commented 2 years ago

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 /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.listmodels() 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.modellist(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._serverurl, 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 httpmethod 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, encodechunked) 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=encodechunked) 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=encodechunked) File "C:\Users\davi\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-29\lib\Python\Lib\http\client.py", line 1040, in _sendoutput 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._createconnection( File "C:\Users\davi\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-29\lib\Python\Lib\socket.py", line 844, in createconnection 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

lassoan commented 2 years ago

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.

davissilva84 commented 2 years ago

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.

davissilva84 commented 2 years ago

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?

ErdanC commented 2 years ago

The same question that the severs not work now.

SachidanandAlle commented 2 years ago

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

1191620 commented 2 years ago

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.

lassoan commented 2 years ago

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:

lassoan commented 2 years ago

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: https://github.com/Project-MONAI/MONAILabel/discussions/833

1191620 commented 2 years ago

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 .

davissilva84 commented 2 years ago

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!

lassoan commented 2 years ago

This issue can be closed.