Unable to pull pretrained model from NGC

When I run this code
!ngc registry model download-version nvidia/tao/pretrained_object_detection:resnet18
–dest $LOCAL_EXPERIMENT_DIR/pretrained_resnet18

I get the following error:-
ngc: /tmp/_MEIjGHmAF/libstdc++.so.6: version CXXABI_1.3.8' not found (required by /usr/lib/x86_64-linux-gnu/libtcmalloc.so.4) ngc: /tmp/_MEIjGHmAF/libstdc++.so.6: version GLIBCXX_3.4.21’ not found (required by /usr/lib/x86_64-linux-gnu/libtcmalloc.so.4)

Please help
I have reinstalled libgcc but still face issue.

Also, is it possible to run TAO models without docker?
I am currently working on Google Colab.

Hi @ronakkhandelwal,

Welcome to the NVIDIA Developer forums. Your issue might be better served if posted in the TAO Toolkit category. I will move it over for you.

Best,
Tom K

How about
! ngc --help

I get the same error when I run !ngc --help

This is the code I am using to install ngc. Is it properly getting installed?

Installing NGC CLI on the local machine.

Download and install

%env CLI=ngccli_cat_linux.zip

!mkdir -p $LOCAL_PROJECT_DIR/ngccli

Remove any previously existing CLI installations

!rm -rf $LOCAL_PROJECT_DIR/ngccli/*

!wget “NVIDIA NGC” -P $LOCAL_PROJECT_DIR/ngccli

!unzip -u “$LOCAL_PROJECT_DIR/ngccli/$CLI” -d $LOCAL_PROJECT_DIR/ngccli/

!rm $LOCAL_PROJECT_DIR/ngccli/*.zip

os.environ[“PATH”]=“{}/ngccli:{}”.format(os.getenv(“LOCAL_PROJECT_DIR”, “”), os.getenv(“PATH”, “”))

Basically I am unable to run ngc. Please help!

Thanks and Regards,
Ronak Khandelwal

Since you are running in Google Colab, I can reproduce the same error in Colab while downloading NVIDIA NGC .
Not sure if the ngc is compatible with Google Colab.

For workaround, please use wget to download the model instead of ngc.

For example,

!ngc registry model download-version nvidia/tao/pretrained_object_detection:resnet18
–dest $LOCAL_EXPERIMENT_DIR/pretrained_resnet18

equals to

! wget https://api.ngc.nvidia.com/v2/models/nvidia/tao/pretrained_object_detection/versions/resnet18/files/resnet_18.hdf5

Refer to https://docs.nvidia.com/tao/tao-toolkit/text/open_images/open_images_pt_object_detection.htmlTAO Pretrained Object Detection | NVIDIA NGC

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.