yang-song / score_inverse_problems

Official repo for "Solving Inverse Problems in Medical Imaging with Score-Based Generative Models"
214 stars 26 forks source link

Fixing the requirements file #2

Closed zaccharieramzi closed 2 years ago

zaccharieramzi commented 2 years ago

When installing the requirements file (pip install -r requirements.txt), I found the following error:

ERROR: Cannot install -r requirements.txt (line 6) and tensorboard==2.4.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested tensorboard==2.4.1
    tensorflow 2.5.0 depends on tensorboard~=2.5

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

I am using Python 3.9.

I just suggest to get rid of the strict version req on tensorboard, as it is installed by TensorFlow anyway.

I also added scikit-image to the requirements file as it is needed when evaluating for the image quality metrics. Similarly I added piq, torch and torchvision I also added odl as needed as well for CT. For all of these packages I do not know which version should be used.

I pinned the tensorflow-probability version to make sure it matches that of tensorflow and that it can be used with tensorflow-gan.