Open DaniBodor opened 3 years ago
Hi,
Thanks for reaching out! From the error, it looks like TensorFlow is not installed properly in your environment. If you want to use GPU, make sure to also install the correct version of CUDA.
As the first cell is failing, the OS library is not loaded. This is what is giving you the subsequent error.
I hope this helps cheers Guillaume
Thanks for your reply. Can you maybe explain how I can make sure that TensorFlow and CUDA are properly installed? As far as I can tell I am following all the steps listed in the Running notebooks locally tab on wiki and don't know how to proceed.
I have tried:
tensorflow==1.15.2
to the requirements file (which I found in the requirements_simple file). This was incompatible with gast 0.4.0, so I changed it to gast 0.2.2.tensorflow==2.6.0
to the requirements file. This was incompatible with h5py 2.10.0 and tensorboard 1.15.0, so I changed these to 3.1.0 and 2.6 (or 2.6.0), respectively.
In both cases the local runtime strands in cell 1.3 with the error I wrote above: UsageError: Line magic function '%tensorflow_version' not found.
Also, regarding my original post, maybe I was unclear about the following:
from __future__ import
lines to the top of the cell is only necessary in the local runtime, not the hosted runtime.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.
tensorflow 2.6.0 requires h5py~=3.1.0, but you have h5py 2.10.0 which is incompatible.
I have since also tried running RetinaNet and U-Net (3D) in a local environment using the auto-generated requirements.txt file, but have run into similar problems.
Hi, Yes, the notebooks are made to be run in Google Colab and do not work straight out of the box locally.
One thing that needs to be removed (or commented out) is the Google Colab specific functions including:
In the YOLO notebook, we use : tensorflow==1.15.2 h5py==2.10
Regarding installing CUDA, check this guide for instance. Just be careful to match the CUDA version to the version of TF you want to use.
Also bear in mind that the requirement files are automatically generated at the moment and may not contain all the libraries required. So you may also need to install a few more manually. We are slowly working on a guide on how to set up the notebook so that they can work locally but this is not yet ready to share.
Describe the bug Whenever I try to run the YOLO notebook from a local runtime I an error. As I am not sure what the correct order of events is when running a local runtime (any steps I can skip? Do I connect to the local runtime from the beginning or after having run one more cells?), I have tried a few different things, but they all result in an error. I will describe the things I have tried below.
EDIT: my bad, I have found the correct requirements file, so you can ignore the comment below. However, the problem remains
To Reproduce
SyntaxError: from __future__ imports must occur at the beginning of the file
from __future__ import
lines to the top of the code I get a different error:UsageError: Line magic function
%tensorflow_versionnot found.
%tensorflow_version
line I get:ModuleNotFoundError: No module named 'tensorflow'
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. tensorflow 2.6.0 requires h5py~=3.1.0, but you have h5py 2.10.0 which is incompatible.
NameError Traceback (most recent call last)