UOB-AI / UOB-AI.github.io

A repository to host our documentations website.
https://UOB-AI.github.io
1 stars 3 forks source link

Cifar10 using DEC model #31

Closed Amalsalem closed 1 year ago

Amalsalem commented 1 year ago

i am trying in this model to do :

import tensorflow_probability as tfp

but i get this error: ImportError: This version of TensorFlow Probability requires TensorFlow version >= 2.12; Detected an installation of version 2.11.0. Please upgrade TensorFlow to proceed.

i think because the current version of Tenserflow is 2.11.0

image

image

Amalsalem commented 1 year ago

image

asubah commented 1 year ago

I downgraded your local installation of tensorflow-probability to 0.19.0 which should work with the base environment.

I don't want to change the base environment since others are using it and I don't want to disturb their work.

If you want me to create an environment for you, just list the packages you want with their versions and I will create it for you.

Amalsalem commented 1 year ago

do i need to list all the pkgs even the ones that i am using from the environment.

if i have my own environment , this mean that i will not be able to use the base environment !!?

asubah commented 1 year ago

Yes you will have to list them all. Check this example: https://github.com/ultralytics/yolov5/blob/master/requirements.txt

You can switch between the base environment and the new environment by changing the notebook kernel. But you can't use them both at the same time. Check the docs here: https://uob-ai.github.io/conda.html#add-as-jupyterlab-kernel