Git Product home page Git Product logo

Comments (5)

srikanth-midde avatar srikanth-midde commented on June 10, 2024

Hi,
Can any help me to sort out this issue?
I got the same "ValueError: not enough values to unpack (expected 2, got 1)" error.
Though I tried with both torchsparse v1.2 and v1.4. but facing the same issue.

from adelaidepth.

isamabdullah88 avatar isamabdullah88 commented on June 10, 2024

Hey you can replace first line with second line with torchsparse==1.4
Replace this:
from torchsparse.utils import sparse_collate_fn, sparse_quantize
with this:
from torchsparse.utils.collate import sparse_collate_fn from torchsparse.utils.quantize import sparse_quantize

It'll work with torchsparse==1.4

from adelaidepth.

isamabdullah88 avatar isamabdullah88 commented on June 10, 2024

Hey,
Please check for default values for models in the test_shape.py and test_depth.py scripts.
Those values are different (resnet50 and resnet101), and they have to be the same.

from adelaidepth.

Ir1d avatar Ir1d commented on June 10, 2024

@isamabdullah88 What do you mean by default values? the values are the same
@YoushaaMurhij Can you please share how you solved this?

from adelaidepth.

isamabdullah88 avatar isamabdullah88 commented on June 10, 2024

@Ir1d

  • Firstly move the model files to specified location and make sure the weight files are being read by the script. Place a check in code for that. I think the above error happens because of weight files not available.
  • Then, make sure that --load_ckpt and --backbone both use the same model. (Either resnet101.pth or resnet50.pth).

Hope this helps!

from adelaidepth.

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.