You “somehow” got the path right? What did you do, try random paths
until it worked? Please, if you are having problems with specific tasks,
you can ask for help.
“How do I find out the path to my file?” is a good question to ask, if
you don’t know how.
Anyway, moving on…
The error message looks fairly complete and self-explanatory to
me. It says:
RuntimeError: unexpected EOF, expected 1362420 more bytes.
The file might be corrupted.
So the file might be corrupted. Are you sure the file is good? How do
you know it is a good file? Where did you get it from?
This does not seem to be the same file as before. Earlier, your file was
a PNG image: 00018.png, if I remember correctly. Now you are unpickling
a model from a “.pth” file:
Loading model from: /content/LOHO/networks/lpips/weights/v0.1/vgg.pth
Where did this file come from? Did you create it?
One thing which would be very useful: in this script:
/content/LOHO/loho.py
line 180 says:
state_dict = torch.load(graphonomy_model_path)
but we don’t know what the graphonomy_model_path is. Can you put a line
immediately before line 180, saying:
print(graphonomy_model_path)
That will tell us what file is being used.
It looks like you are using the “torch” third-party library, and it is
trying to unpickle some file. You need to identify which file it is
using, and make sure it is the correct file. You need to do this
debugging yourself – I don’t have access to your code or data files or
the library you are using.
Maybe you are trying to use the wrong data file. Maybe the file is
corrupt. Maybe the library is buggy. It is hard to say what is
happening. Can you provide the smallest possible example that fails?
http://www.sscce.org/
That might help us to track down the cause of the fault.