tom_s
September 15, 2023, 3:35am
1
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
Morganh
September 15, 2023, 7:15am
2
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
tom_s
September 15, 2023, 10:43pm
3
ah… so it is a few levels back from where the actual fpenet.ipynb is located.
tom_s
September 27, 2023, 5:19am
4
@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’ ?
Morganh
September 27, 2023, 5:55am
5
Because pwd
may be different where different users trigger the notebook.
1 Like
tom_s
September 27, 2023, 6:10am
6
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 ?
Morganh
September 27, 2023, 6:13am
7
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
system
Closed
October 11, 2023, 6:13am
8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.