Error during Windows install and fine-tuning #790
Replies: 12 comments 6 replies
-
|
Oh never mind. I was doing something silly. Its fixed now :) Any tips on testing ADS is using the GPU when doing segmentations using the inbuilts? I did a quick test with python in the ads_venv and seems to detect the GPU. But when I run axondeepseg_test, it seems to be using the CPU for predictions. |
Beta Was this translation helpful? Give feedback.
-
|
I think the That being said, I wonder if the default installation of AxonDeepSeg does not install the CPU-only version of PyTorch 🤔. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the quick response! Let me check if I can monitor GPU usage. Also just an FYI, I have set this up to run on a Linux high-performance cluster. Let me see if this uses the GPU when running the inference. Are the most up to date model downloaded with |
Beta Was this translation helpful? Give feedback.
-
Yes. |
Beta Was this translation helpful? Give feedback.
-
|
Beautiful. Thank you very much. The base models work quiet well out of the box. I plan on improving model weights by retraining the TEM model with a few of my own labels/images. |
Beta Was this translation helpful? Give feedback.
-
|
One last question, are there any limits on file size that I can use for segmentation with the base models? My raw files are in its native resolution of 1.5nm/pixel. So I just update this in the CLI
Downsampling my images to 10nm/pixel has been the only way to resolve this. Any suggestions? Thank you. |
Beta Was this translation helpful? Give feedback.
-
Kind of. The package used for loading the images has internal limits. Perhaps if you remove the Another note: our software resamples the images/patches so that the resampled image has a resolution (distance per pixel) similar to the resolution of the model you are trying to use. So if your image has a resolution much higher than the model resolution, it likely won't lead to better results because the image will be resampled anyway. |
Beta Was this translation helpful? Give feedback.
-
|
Ah ok. Forgot that PIL has size limits. I did try without I did not know there was an internal resampling so I decided to resample my images to match the scaling that the model was trained on. I then included "resampled" pixel size in the CLI when running ADS. |
Beta Was this translation helpful? Give feedback.
-
@Eddymorphling is training a new model with your dataset the goal of your project, or are the mainly interested in the segmentations/morphometrics for your research? If the latter, @hermancollin and @ArthurBoschet have a new deep learning model/method in development that's performing quite well with nearly any dataset/contrast you give it, if you're willing to share a sample image they could maybe try and see if they can get better results (and save you time). |
Beta Was this translation helpful? Give feedback.
-
Indeed, I would advise against trying to fine-tune the TEM model yourself. The framework it was trained on is a little bit deprecated and maintenance is shaky. If you want us to try our new model, this could be a better option. Moreover, this new model will be publicly released very shortly, so if you really want to update the weights, I suggest waiting for this new version first, which would potentially give better results. |
Beta Was this translation helpful? Give feedback.
-
Got it. Thank you for letting me know! I am happy to wait to the release of the new model. Will keep an eye out for it! Please do keep me updated if possible :) |
Beta Was this translation helpful? Give feedback.
-
Out of curiosity, will this new model have training data that has "unmyelinated" or "remyelinated" axons? I am interested in segmenting these too and this was the rationale behind retraining the weight with some of my training data. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I am trying to setup AxonDeepseg using Anaconda3 on a fresh env that runs on python 3.8. But, I come across this error during the install
I followed the instructions that I found over here . Any advise on how I can fix this issue? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions