NVIDIA-AI-IOT / nvidia-tao

Other
82 stars 11 forks source link

Cannot correctly execute setup_env.sh in maskrcnn.ipynb on colab #13

Open brosscle opened 1 year ago

brosscle commented 1 year ago

Hi, and thanks for your work ! I want to execute the notebook nvidia-tao/tensorflow/maskrcnn.ipynb on my data on a google colab instance, and I am facing the issue : /bin/bash: line 1: tao: command not found when executing the cell !tao mask_rcnn dataset_convert -i $DATA_DIR/train \ -a $DATA_DIR/train/_annotations.coco.json \ -o $DATA_DIR --include_masks -t train -s 256

It is probably related to the execution of the script tensorflow/setup_env.sh which previously resulted in several issues concerning the installation of python 3.6 :

E: Unable to locate package python3.6-distutils E: Couldn't find any package by glob 'python3.6-distutils' E: Couldn't find any package by regex 'python3.6-distutils' Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package python3.6-dev E: Couldn't find any package by glob 'python3.6-dev' E: Couldn't find any package by regex 'python3.6-dev' rm: cannot remove '/usr/bin/python': No such file or directory /content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 16: python3.6: not found /content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 17: python3.6: not found /content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 18: python3.6: not found /content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 19: python3.6: not found /content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 22: python3.6: not found /content/drive/MyDrive/nvidia-tao/tensorflow/setup_env.sh: 23: python3.6: not found

I previously sucessfully executed the script pytorch/setup_env.sh, so it might be an issue only present in the tensorflow setup. Does anyone faced the same issue before and have an idea about how to solve it ? Thanks in advance, Clément