micklexqg:

what doesthe parameter 3 mean for ?


The 3 is the same as signal_dim=3, and it refers to the number of dimensions in your tensor. In your case, that is 3 because you have the first dimension with size 3 that represents RGB, and the second and third dimensions represent the height (400) and width (300) of your image. If you were working with a single-channel image you would use signal_dim=2 because in that case you would only need the height and width dimensions. Put differently, then your tensor would have a shape of [1, 400, 300].



 micklexqg:

pip install --upgrade pytorch


The pip package is called torch, not pytorch. Try using the following instead
pip install --upgrade torch