Git Product home page Git Product logo

Comments (6)

dingmyu avatar dingmyu commented on July 30, 2024

Sorry, I used ASCII transfer for binary files during upload, which resulted in file corruption. The weight file has been updated. You can download and try again. Thanks.

https://drive.google.com/open?id=1RiPX-CiSEf1L1NZsWzATvLB7XXBFMsCA

from d4lcn.

GreatGameDota avatar GreatGameDota commented on July 30, 2024

Still getting an error, will troubleshoot later:

---------------------------------------------------------------------------
UnpicklingError                           Traceback (most recent call last)
<ipython-input-8-c6549c052d91> in <module>()
     43 
     44 # load weights
---> 45 load_weights(net, weights_path, remove_module=True)
     46 
     47 # switch modes for evaluation

2 frames
/usr/local/lib/python3.6/dist-packages/torch/serialization.py in _load(f, map_location, pickle_module, **pickle_load_args)
    601             f.seek(0)
    602 
--> 603     magic_number = pickle_module.load(f, encoder='unicode')
    604     if magic_number != MAGIC_NUMBER:
    605         raise RuntimeError("Invalid magic number; corrupt file?")

UnpicklingError: invalid load key, '>'.

from d4lcn.

dingmyu avatar dingmyu commented on July 30, 2024

@GreatGameDota

Hi, I just tested and the model works fine. The reason may be that you use ASCII instead of binary when uploading it to the server.

You can set FTP file_type to Binary in your software, e.g., in FileZilla,
image

You can also compress the file or modify the suffix and then upload it to ensure consistency.

Thanks.

from d4lcn.

GreatGameDota avatar GreatGameDota commented on July 30, 2024

Thanks I seem to have fixed it however I'm now getting this error:

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-7-c6549c052d91> in <module>()
     43 
     44 # load weights
---> 45 load_weights(net, weights_path, remove_module=True)
     46 
     47 # switch modes for evaluation

1 frames
/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py in load_state_dict(self, state_dict, strict)
    837         if len(error_msgs) > 0:
    838             raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
--> 839                                self.__class__.__name__, "\n\t".join(error_msgs)))
    840         return _IncompatibleKeys(missing_keys, unexpected_keys)
    841 

RuntimeError: Error(s) in loading state_dict for RPN:
	Missing key(s) in state_dict: "adaptive_bn.weight", "adaptive_bn.bias", "adaptive_bn.running_mean", "adaptive_bn.running_var", "adaptive_layers1.1.weight", "adaptive_layers1.1.bias", "adaptive_bn1.weight", "adaptive_bn1.bias", "adaptive_bn1.running_mean", "adaptive_bn1.running_var". 

from d4lcn.

dingmyu avatar dingmyu commented on July 30, 2024

Hi, the problem may be that you did not replace the models/resnet_dilate.py file.

If you want to use this simplified pre-trained model, you should download weights, model and config file, replace models/resnet_dilate.py, place weight.pkl and config.pkl in the pretrain folder, then run test.sh.

Thanks.

from d4lcn.

GreatGameDota avatar GreatGameDota commented on July 30, 2024

My bad! Thanks for all the help, got it to work! :)

from d4lcn.

Related Issues (20)

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.