Skip to content

fixup dependencies #22

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

Closed
wants to merge 2 commits into from
Closed

Conversation

jefromson
Copy link

@jefromson jefromson commented Mar 4, 2024

Edit: I should have given more context here. I am attempting to install this package with the conda-forge release version of pytorch and it seems to have unmet dependencies requiring me to downgrade smp to 0.2.1. I am hoping to get the recipe here updated to be compatible with pytorch.

@hmaarrfk

Checklist

  • Used a personal fork of the feedstock to propose changes
  • [ x] Bumped the build number (if the version is unchanged)
  • [ x] Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • [x ] Ensured the license file is being packaged.

@conda-forge-webservices
Copy link
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@jefromson
Copy link
Author

@conda-forge-admin, please rerender

@@ -23,7 +23,8 @@ requirements:
- pillow
- pretrainedmodels ==0.7.4
- python >=3.6
- timm ==0.9.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smp 0.3.3 has a hard pin on the version of timm, see error at https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=888834&view=logs&j=656edd35-690f-5c53-9ba3-09c10d0bea97&t=986b1512-c876-5f92-0d81-ba851554a0a3&l=1048:

segmentation-models-pytorch 0.3.3 has requirement timm==0.9.2, but you have timm 0.9.16

Will need to update upstream at https://github.com/qubvel/segmentation_models.pytorch/blob/6db76a1106426ac5b55f39fba68168f3bccae7f8/requirements.txt#L4, and get them to make a new release before it can be changed here.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintainer of https://github.com/conda-forge/pytorch-cpu-feedstock/ here.
Thank you for pinging me @jefromson .

Sometimes it is appropriate to patch the source code.

We do this a bit with conda-forge because often we are more at the bleeding edge of releases compared to what people are working with upstream.

It may be that we should:

  1. Set the pin to >=0.9.2,<0.10a.0a instead of ==0.9.2 with conda build's infrastructure, this translates to any "version 0.9".
  2. Patch the file you pointed to with a conda-forge patch. Preferably, we leave a comment pointing to a tracking issue upstream, or even more preferred, a PR showing that the proposed patch was merged and is slated for the next release.

This is sometimes quite risky without tests. I can help try to run the small test suite in the recipe if you want.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#23 <-- leaving this here as an example of what I have in mind. but I haven't run any analysis code, so it might be fully broken.

I did leave a reference to the open issue asking for a new release with expanded timm compatibility.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping an eye on qubvel-org/segmentation_models.pytorch#885 for smp to support timm 1.x

@@ -23,7 +23,8 @@ requirements:
- pillow
- pretrainedmodels ==0.7.4
- python >=3.6
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- python >=3.6
- python >=3.7

Upstream says that this should be 3.7.
https://github.com/qubvel/segmentation_models.pytorch/blob/v0.3.3/setup.py#L20

though it may be entirely true that 3.6 is compatible.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weiji14 added a commit to Clay-foundation/model that referenced this pull request Jul 27, 2024
Since segmentation-models-pytorch=0.3.3 requires timm=0.9.2. Xref conda-forge/segmentation-models-pytorch-feedstock#22 (comment)
weiji14 added a commit to Clay-foundation/model that referenced this pull request Oct 22, 2024
* Remove explicit pin on timm

Since segmentation-models-pytorch=0.3.3 requires timm=0.9.2. Xref conda-forge/segmentation-models-pytorch-feedstock#22 (comment)

* Add back osx-64 and osx-arm64 platforms

* Remove explicit pin on pyarrow

Use whatever is set by lancedb and pylance. Currently pylance=0.14.1 pulls in pyarrow=14.0.2.
@weiji14
Copy link
Member

weiji14 commented Jan 8, 2025

Exact == dependency pins on efficientnet-pytorch, pretrainedmodels and timm have been loosened in smp v0.4.0 to set lower limits >= only 🎉, will close this after #26 is merged.

@weiji14 weiji14 mentioned this pull request Jan 8, 2025
3 tasks
@weiji14 weiji14 closed this in #26 Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants