thuhcsi / S2G-MDDiffusion

MIT License
59 stars 2 forks source link

environment error #5

Open Yutong18 opened 2 months ago

Yutong18 commented 2 months ago

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 commented 2 weeks ago

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