ali-vilab / AnyDoor

Official implementations for paper: Anydoor: zero-shot object-level image customization
https://ali-vilab.github.io/AnyDoor-Page/
MIT License
4.01k stars 366 forks source link

opencv_contrib_python #31

Open phamkinhquoc2002 opened 11 months ago

phamkinhquoc2002 commented 11 months ago

"ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11 ERROR: Could not find a version that satisfies the requirement opencv_contrib_python==4.3.0.36 (from versions: 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.15.55, 3.4.16.59, 3.4.17.61, 3.4.17.63, 3.4.18.65, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.3.56, 4.5.4.58, 4.5.4.60, 4.5.5.62, 4.5.5.64, 4.6.0.66, 4.7.0.68, 4.7.0.72, 4.8.0.74, 4.8.0.76, 4.8.1.78) ERROR: No matching distribution found for opencv_contrib_python==4.3.0.36"

What version should I change to?

VioletRaven commented 11 months ago

I have got the same error but it doensn't finish there, if you try to install manually all the other libraries it just won't work... the requirement.txt file maybe needs some slight modification.. I couldn't even solve it using conda as suggested in the repo :(

phamkinhquoc2002 commented 11 months ago

Thankj you :( I hope they can find a way to fix it

XavierCHEN34 commented 11 months ago

Try opencv-contrib-python==4.6.0.66 ?

phamkinhquoc2002 commented 11 months ago

Updated: I add some modifications to the requirement.txt file but there maybe something wrong with the subprocess, in which I can't figure out the reason: " note: This error originates from a subprocess, and is likely not a problem with pip.

error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details."

tosunozgun commented 11 months ago

i got this error when i am using python 3.10, downgrade python to 3.8 solve this problem

Eddudos commented 11 months ago

I edited requirements.txt or enviromnent.yaml if you wish to solve this issue. Just replace opencv_contrib_python==4.3.0.36 with opencv_contrib_python. Pip installs proper version without conflicts by itself.