zhuduowang / ChangeViT

The officical code of 'ChangeViT: Unleashing Plain Vision Transformers for Change Detection'.
Other
31 stars 3 forks source link

Installation of Dependency #3

Closed alisalmasiii closed 4 weeks ago

alisalmasiii commented 1 month ago

Hello,

I have some problems installing the Dependencies. As I try to instal requirements via "pip install -r requirements.txt", I face an error with installing the babel, specifically: '/croot/babel_1671781930836/work'.

Any suggestion to solve this issue?

Great work BTW!

zhuduowang commented 1 month ago

Thanks for your attention. We have fixed the dependency installation bug. If you have any other questions, please contact me.

alisalmasiii commented 1 month ago

Thank you for your prompt reply. there're still some compatibility issues I am facing. I use a Colab notebook and facing the following errors as I try to install them. Most incompatibilities come from "numpy"

Error:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.

chex 0.1.86 requires numpy>=1.24.1, but you have numpy 1.21.6 which is incompatible.
cudf-cu12 24.4.1 requires numpy<2.0a0,>=1.23, but you have numpy 1.21.6 which is incompatible.
flax 0.8.4 requires numpy>=1.22, but you have numpy 1.21.6 which is incompatible.
jax 0.4.26 requires numpy>=1.22, but you have numpy 1.21.6 which is incompatible.
jaxlib 0.4.26+cuda12.cudnn89 requires numpy>=1.22, but you have numpy 1.21.6 which is incompatible.
numba 0.58.1 requires numpy<1.27,>=1.22, but you have numpy 1.21.6 which is incompatible.
numexpr 2.10.1 requires numpy>=1.23.0, but you have numpy 1.21.6 which is incompatible.
pandas-stubs 2.0.3.230814 requires numpy>=1.25.0; python_version >= "3.9", but you have numpy 1.21.6 which is incompatible.
plotnine 0.12.4 requires numpy>=1.23.0, but you have numpy 1.21.6 which is incompatible.
pywavelets 1.6.0 requires numpy<3,>=1.22.4, but you have numpy 1.21.6 which is incompatible.
rmm-cu12 24.4.0 requires numpy<2.0a0,>=1.23, but you have numpy 1.21.6 which is incompatible.
statsmodels 0.14.2 requires numpy>=1.22.3, but you have numpy 1.21.6 which is incompatible.
tensorflow 2.15.0 requires numpy<2.0.0,>=1.23.5, but you have numpy 1.21.6 which is incompatible.
torchtext 0.18.0 requires torch>=2.3.0, but you have torch 1.13.1 which is incompatible.
xarray-einstats 0.7.0 requires numpy>=1.22, but you have numpy 1.21.6 which is incompatible.
Successfully installed Pillow-9.2.0 affine-2.4.0 arrow-1.3.0 blessed-1.20.0 boto3-1.34.142 botocore-1.34.142 croniter-1.3.15 dateutils-0.6.12 deepdiff-7.0.1 editor-1.6.6 efficientnet-pytorch-0.7.1 einops-0.6.0 fastapi-0.88.0 h11-0.14.0 inquirer-3.3.0 jmespath-1.0.1 kornia-0.6.12 lightning-1.9.5 lightning-cloud-0.5.70 lightning-utilities-0.11.3.post0 munch-4.0.0 numpy-1.21.6 nvidia-cublas-cu11-11.10.3.66 nvidia-cuda-nvrtc-cu11-11.7.99 nvidia-cuda-runtime-cu11-11.7.99 nvidia-cudnn-cu11-8.5.0.96 opencv-python-4.6.0.66 ordered-set-4.1.0 pretrainedmodels-0.7.4 pydantic-1.10.17 python-multipart-0.0.9 rasterio-1.3.10 readchar-4.1.0 rtree-1.3.0 runs-1.2.2 s3transfer-0.10.2 segmentation-models-pytorch-0.3.2 snuggs-1.4.7 starlette-0.22.0 starsessions-1.3.0 timm-0.6.12 torch-1.13.1 torchaudio-0.13.1 torchcam-0.3.2 torchgeo-0.4.1 torchmetrics-0.11.4 torchvision-0.14.1 types-python-dateutil-2.9.0.20240316 uvicorn-0.30.1 websockets-11.0.3 xmod-1.8.1
WARNING: The following packages were previously imported in this runtime:
  [PIL,numpy]
You must restart the runtime in order to use newly installed versions.
zhuduowang commented 1 month ago

We install the dependency on an Ubuntu server, which works fine. You may modify the numpy >= 1.25 to solve the mentioned problem.