GithubHelp home page GithubHelp logo

hanet-cd's Issues

无法正确加载您给出的训练结果

Traceback (most recent call last):
File "Output_Results.py", line 39, in
model = torch.load(path)
File "/root/miniconda3/lib/python3.8/site-packages/torch/serialization.py", line 712, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "/root/miniconda3/lib/python3.8/site-packages/torch/serialization.py", line 1046, in _load
result = unpickler.load()
File "/root/miniconda3/lib/python3.8/site-packages/torch/serialization.py", line 1039, in find_class
return super().find_class(mod_name, name)
ModuleNotFoundError: No module named 'models.MSPSNetHCX'
我在加载您的训练结果模型时出现了以下情况,似乎在您的训练结果之后还修改过代码结构,不知道您是否方便更新代码,或者给我字典形式的模型参数

No module named 'models.MSPSNetHCX'

Traceback (most recent call last):
File "E:\Futherstudy\change-detection\reproduction\HANet-CD-main\test.py", line 36, in
model = torch.load(path)
File "D:\ANACONDA\envs\d2l\lib\site-packages\torch\serialization.py", line 712, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "D:\ANACONDA\envs\d2l\lib\site-packages\torch\serialization.py", line 1049, in _load
result = unpickler.load()
File "D:\ANACONDA\envs\d2l\lib\site-packages\torch\serialization.py", line 1042, in find_class
return super().find_class(mod_name, name)
ModuleNotFoundError: No module named 'models.MSPSNetHCX'

Process finished with exit code 1

i have a question

Author I would like to ask a question, why is the log recorded in the val section of the train code using mean_train_metrics?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.