-
Notifications
You must be signed in to change notification settings - Fork 27
cannot use python 3.9 with tensorflow==1.15 #47
Comments
Is there a timeline for this upgrade? I need some TensorFlow 2 functionality that I can't easily access in the same environment because model-tools forces TensorFlow 1.15. |
So far, we did not have this planned until mid 2022, but if there's a necessity we will prioritize it sooner. Can you please describe your use case? Is there a way to get away with tf1 and e.g. re-defining the functionality you're using? |
For what is tensorflow used in the library? I had the same problem and I simply told pip to ignore the tensorflow dependency while installing model-tools. The tests seem to work. Of course it may be needed for other things which I'm not currently using... |
It's actually only used in the OST metric which isn't included in the competition (as well as the mask_regression metric which currently isn't used at all for the standard benchmarks). |
Sorry for the late reply! I needed a TF2 utility to convert pretrained TF models to PyTorch. I decided to just create a separate environment for that step of my workflow, so this isn't urgent. Closing the issue; thanks for the responses! |
I got an issue related to this when installing this repo on a MacBook with Apple Silicon. It seems that the issue originated from the fact that this package only uses tensorflow==1.15, which is not compatible with Python 3.8 or higher. However, the newer Anaconda distribution for the M1 MacOS system only has Python 3.8 and higher, making it hard to run this repo on the laptop. So to install this package, I may have to reinstall Anaconda or switch to another machine that supports Python 3.7. It would be really great if this repo could support newer versions of TensorFlow and Python. |
to add to this, there are a lot of models these days that only have weights in TF2. Unless there is an easy way to convert these to previous TF versions or pytorch (which I haven't seen a general way to do), this limits the models that can be evaluated. |
Any updates on this dependency? I've been interested in getting this up and running and have gone through various python versions/venvs with no luck. Thank you! |
It appears that this PR updated the two files in question to use TF2 (brain-score/vision@04b01f5), but it may just be an old dependency in model-tools? If those were the last two TF1 references. Potentially Old Dependency in Question: |
hi all, as an update to this: we have just released a major refactor which combines This should make it a lot easier to fix the tensorflow issues and potentially upgrade python. |
We're currently still on TensorFlow 1:
model-tools/setup.py
Line 18 in 2919700
Python 3.9 so far does not seem to work with 1.15, we should upgrade to TensorFlow 2 to avoid specifying versions directly
The text was updated successfully, but these errors were encountered: