-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating pip package and compatibility with ZeroCostDL4Mic/DL4MicEverywhere #32
Comments
We will give it a try, in the meantime I asked Manan to give us access to the PyPi project (so that we can use the more modern trusted publisher process). |
Thank you! I really really like this method and would be super cool to have it running through the notebooks |
Hi there!
|
Hi @esgomezm ! Did you install the conda env using the I tried this one and I could run one of the examples (at least the function you have an issue with, and the training is ongoing): name: embedseg
channels:
- pytorch
- nvidia
- defaults
dependencies:
- python=3.9
- pytorch
- torchvision
- pytorch-cuda=11.8
- pip
- pip:
- git+https://github.com/juglab/EmbedSeg.git Note that I have access to an A40-8Q, and a different GPU might require a different pytorch-cuda version (e.g. 11.2). Let me know if this works! Also, if the notebook your are using is based on a similar example from this repo, let me know, I can test it. |
Hi @jdeschamps No, I was installing embedseg directly using pip install. But the issue remains with the setup.py in github, as it doesn't freeze any version. The issue is that EmbedSeg was coded for numpy 1.20, while other dependencies such as astropy, retired their older versions and the new ones (astropy>5) are not compatible with numpy 1.20. This is the reason why I asked for a very specific and frozen environment where the code is working. In any case, I found a way around by installing the dependencies in a particular order and things seem to work, at least inside dockers (https://github.com/HenriquesLab/ZeroCostDL4Mic/blob/master/requirements_files/EmbedSeg_2D_requirements_simple.txt) I hope this helps |
Best would then to make EmbedSeg compatible with more recent numpy then (especially if the error is just np.dtypes, that's easy to fix). I'll look into that. |
that would be great. There are issues with np.dtypes() and also using np.float() etc. |
Actually, it is probably because your env still use an old version of EmbedSeg, because the numpy issues have been fixed in 0.2.5. (my env this morning was using numpy 1.26). Can your CI/pipeline be built by pulling directly the latest EmbedSeg from git? e.g.:
In the meantime, I am waiting to get full access to the PyPi package, so that the CI can push the latest version automatically... |
Hi there!
I'm updating the Embedseg notebook in ZeroCostDL4Mic so we can also use it in DL4MicEverywhere with Docker containers. For the containerisation in Mac we are having some issues that could be solved with some feature changes directly in EmbedSeg. We were wondering if the followings are easy or doable for you to deploy:
In the setup.py of embedseg, imagecodecs is listed as a dependency. Do you think it is be possible to remove it from the basic installation and leave it as an extra requirement for the environment?
Also, could it be possible to update the pip package with the new version of Embedseg? When installing it from pip there are multiple issues with old versions of numpy, however, when installing it directly from your repo, things work nicely.
Thank you!
Sincerely,
Esti
The text was updated successfully, but these errors were encountered: