Segnet.py can I write in this python file?

Hi,

I would custom my segnet model in the python file segnet.py but I can’t, I don’t understand.
I have created mySegnet.py, but my terminal don’t display the mySegnet.py file, the path is good. And after I wrote juste a print("…") in the segnet.py script, the programm is executed without problem but it doesn’t display the the print("…"). Anybody to explain me why.
PS : I have the right for reading and writing on this python file.

Thanks.

T.

Hi @theo17300, if you made edits to jetson-inference/python/examples/segnet.py then you should also run the followin g after making edits:

$ cd jetson-inference/build
$ cmake ../
$ sudo make install

This will copy the updated script into the bin directory.

What is the location of your mySegNet.py file? If it doesn’t have execution privileges, you should run it as python3 mySegNet.py. Or you can run chmod +x mySegNet.py first to give it execution privileges.

1 Like