Fpenet SAMPLES_DIR content and where to get it from

In the fpenet.ipynb it has a setting:

# $SAMPLES_DIR is the path to the sample notebook folder and the dependency folder
# $SAMPLES_DIR/deps should exist for dependency installation
%env SAMPLES_DIR=/path/to/local/samples_dir

what should be in this samples_dir ? and where do i get it from ?

i can see it is used a bit further with the step:
!pip3 install -r $SAMPLES_DIR/deps/requirements-pip.txt

The $SAMPLES_DIR is the path to the sample notebook folder and the dependency folder.

You can download notebook via command

wget --content-disposition https://api.ngc.nvidia.com/v2/resources/nvidia/tao/tao-getting-started/versions/5.0.0/zip -O getting_started_v5.0.0.zip
unzip -u getting_started_v5.0.0.zip  -d ./getting_started_v5.0.0 && rm -rf getting_started_v5.0.0.zip && cd ./getting_started_v5.0.0

ah… so it is a few levels back from where the actual fpenet.ipynb is located.

@Morganh can you please confirm that for fpenet.ipynb ( which is located inside the https://api.ngc.nvidia.com/v2/resources/nvidia/tao/tao-getting-started/versions/5.0.0/zip )

( if i add a !pwd in the notebook shows me
/root/getting_started_v5.0.0/notebooks/tao_launcher_starter_kit/fpenet )

So in that case SAMPLES_DIR would need to be :

%env SAMPLES_DIR=/root/getting_started_v5.0.0/notebooks/tao_launcher_starter_kit

is that right ?

why doesn’t the notebook pickup a default for this directory by using a ‘pwd’ ?

Because pwd may be different where different users trigger the notebook.

1 Like

thank you.

can you please tell me if the following (because i am confused) is right or not :

should SAMPLES_DIR be set to:

%env SAMPLES_DIR=/root/getting_started_v5.0.0/notebooks/tao_launcher_starter_kit

yes/no ?

It’s OK.
This env is used to run below cell.
!pip3 install -r $SAMPLES_DIR/deps/requirements-pip.txt

So, make sure $SAMPLES_DIR/deps/requirements-pip.txt is available.

1 Like

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