Skip to content
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

Version conflict #34

Open
jinto opened this issue Mar 8, 2024 · 1 comment
Open

Version conflict #34

jinto opened this issue Mar 8, 2024 · 1 comment

Comments

@jinto
Copy link

jinto commented Mar 8, 2024

I could build working images with requirements.txt like

-pydantic<2
+pydantic
-Pillow==10.2.0
+Pillow
-gradio==4.11.0
+gradio
+# added to fix version conflict
+httpx==0.24.1
+torchmetrics==0.11.4
+slack_sdk

but couldn't resolve ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' without following hack

RUN sed -i 's/from torchvision.transforms.functional_tensor import rgb_to_grayscale/from torchvision.transforms.functional import rgb_to_grayscale/' /usr/local/lib/python3.10/site-packages/basicsr/data/degradations.py

I think requirements.txt must be updated.

@kittinan
Copy link

@jinto Thank you, your solution saves my time.

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

No branches or pull requests

2 participants