Coder Social home page Coder Social logo

Comments (2)

Rzfeng avatar Rzfeng commented on July 20, 2024

After fixing this error, another issue persists when building the model (still unsolved)

3c433cce2c59_cosmos_cosmos_1 | ===== BUILDING MODEL ======
3c433cce2c59_cosmos_cosmos_1 | Built backbone resnet50
3c433cce2c59_cosmos_cosmos_1 | Building downstream components via shape testing
3c433cce2c59_cosmos_cosmos_1 | done shape testing, building, attention mechanisms
3c433cce2c59_cosmos_cosmos_1 | built multi head attention
3c433cce2c59_cosmos_cosmos_1 | 8, 8, 2048
3c433cce2c59_cosmos_cosmos_1 | super called
3c433cce2c59_cosmos_cosmos_1 | going to build a 131072 by 1024 matrix of weights
3c433cce2c59_cosmos_cosmos_1 | built embeddings
3c433cce2c59_cosmos_cosmos_1 | done
3c433cce2c59_cosmos_cosmos_1 | Traceback (most recent call last):
3c433cce2c59_cosmos_cosmos_1 |   File "run.py", line 132, in <module>
3c433cce2c59_cosmos_cosmos_1 |     run_inference(f'{tmp}/images', f'{tmp}/cc_proposals', model_config, weights, xml, device)
3c433cce2c59_cosmos_cosmos_1 |   File "/app/infer/infer.py", line 23, in run_inference
3c433cce2c59_cosmos_cosmos_1 |     model.load_state_dict(torch.load(weights, map_location={"cuda:0": device_str}))
3c433cce2c59_cosmos_cosmos_1 |   File "/home/user/.local/lib/python3.6/site-packages/torch/serialization.py", line 358, in load
3c433cce2c59_cosmos_cosmos_1 |     return _load(f, map_location, pickle_module)
3c433cce2c59_cosmos_cosmos_1 |   File "/home/user/.local/lib/python3.6/site-packages/torch/serialization.py", line 532, in _load
3c433cce2c59_cosmos_cosmos_1 |     magic_number = pickle_module.load(f)
3c433cce2c59_cosmos_cosmos_1 | _pickle.UnpicklingError: invalid load key, 'v'.
3c433cce2c59_cosmos_cosmos_1 exited with code 1

from cosmos.

ankur-gos avatar ankur-gos commented on July 20, 2024

Stale, closing.

from cosmos.

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.