Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I ran the script and got an error. How can I fix it? #4

Open
Shiratsuyu1 opened this issue Dec 1, 2021 · 1 comment
Open

I ran the script and got an error. How can I fix it? #4

Shiratsuyu1 opened this issue Dec 1, 2021 · 1 comment

Comments

@Shiratsuyu1
Copy link

The error message is as follows, really appreciate your help.

Traceback (most recent call last):
File "D:/NEU-DET-Steel-Surface-Defect-Detection-master/FPN_Resnet_Train.py", line 31, in
model_trainer = Trainer(model, lr, epochs, path)
File "D:\NEU-DET-Steel-Surface-Defect-Detection-master\Utilities\Trainer.py", line 54, in init
checkpoint = torch.load(self.PATH)
File "C:\Users\pc.conda\envs\env\lib\site-packages\torch\serialization.py", line 593, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\pc.conda\envs\env\lib\site-packages\torch\serialization.py", line 762, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.

Process finished with exit code 1

@thesuncool
Copy link

The error message is as follows, really appreciate your help.

Traceback (most recent call last): File "D:/NEU-DET-Steel-Surface-Defect-Detection-master/FPN_Resnet_Train.py", line 31, in model_trainer = Trainer(model, lr, epochs, path) File "D:\NEU-DET-Steel-Surface-Defect-Detection-master\Utilities\Trainer.py", line 54, in init checkpoint = torch.load(self.PATH) File "C:\Users\pc.conda\envs\env\lib\site-packages\torch\serialization.py", line 593, in load return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args) File "C:\Users\pc.conda\envs\env\lib\site-packages\torch\serialization.py", line 762, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) _pickle.UnpicklingError: invalid load key, 'v'.

Process finished with exit code 1

hello,I also encountered the same problem. Have you solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants