ptrblck:

if name==‘main’: run()


Thankyou for replying
Yes. I do and dont get this error, but training process is not done.
when I type print(model_ft.fc.weight) I get this error:
name ‘model_ft’ is not defined