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

environment error #5

Open
Yutong18 opened this issue Jun 21, 2024 · 1 comment
Open

environment error #5

Yutong18 opened this issue Jun 21, 2024 · 1 comment

Comments

@Yutong18
Copy link

Hi there,
Thank you so much for your open resource code. Could you please check the requirements.txt. There are a lot of conflicts in the environment. Thank you so much!

@andypinxinliu
Copy link

andypinxinliu commented Aug 25, 2024

I have spent a lot of time and here is how I successfully run it.

first:

conda create -n mdd python=3.10

second:

conda install pytorch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 pytorch-cuda=11.8 -c pytorch -c nvidia

you can choose any recent torch versions that support your machine

third:
replace the requirement with the follows:

absl-py
accelerate
anyio
appdirs
argon2-cffi
attrs
audioread
Babel
backcall
beautifulsoup4
bleach
Brotli
cachetools
certifi
cffi
charset-normalizer
click
colorama
cycler
decorator
defusedxml
dill
docker-pycreds
einops
entrypoints
fastjsonschema
filelock
flake8
flake8-comprehensions
flatbuffers
fonttools
fsspec
fvcore
gitdb
GitPython
google-auth
google-auth-oauthlib
grpcio
huggingface-hub
idna
imageio
imageio-ffmpeg
importlib-metadata
importlib-resources
iopath
ipykernel
ipython
ipython-genutils
ipywidgets
jedi
librosa 
llvmlite
Markdown
MarkupSafe
matplotlib==3.1.3
matplotlib-inline
mediapipe
notebook
notebook_shim
numba
numpy==1.26.4
oauthlib
olefile
opencv-python
p-tqdm
packaging
pandas
pandocfilters
parso
pathos
pexpect
pickleshare
Pillow
pkgutil_resolve_name
platformdirs
pooch
portalocker
pox
ppft
prometheus-client
prompt-toolkit
protobuf
psutil
ptyprocess
pyasn1
pyasn1-modules
pycodestyle
pycparser
pyflakes
Pygments
pyparsing
pyrsistent
PySocks
python-dateutil
pytz
PyWavelets
PyYAML
pyzmq
qtconsole
QtPy
requests
requests-oauthlib
rsa
safetensors
scikit-image
scikit-learn
scipy
Send2Trash
sentry-sdk
setproctitle
setuptools
six
smmap
sniffio
soundfile
soupsieve
soxr
tabulate
tensorboard
tensorboard-data-server
tensorboard-plugin-wit
termcolor
terminado
testpath
threadpoolctl
tifffile
timm
tomli
tornado
tqdm
traitlets
typing_extensions
urllib3
wandb
wcwidth
webencodings
websocket-client
Werkzeug
wheel
widgetsnbextension
yacs
zipp

finally install mobile-sam

pip install git+https://github.com/ChaoningZhang/MobileSAM.git

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