Coder Social home page Coder Social logo

Hi,I can’t figure out how to load "the depth completion model trained on ScanNet",or more specific,the "data.pkl" about dense_depth_priors_nerf HOT 2 CLOSED

heihuagg avatar heihuagg commented on August 21, 2024
Hi,I can’t figure out how to load "the depth completion model trained on ScanNet",or more specific,the "data.pkl"

from dense_depth_priors_nerf.

Comments (2)

barbararoessle avatar barbararoessle commented on August 21, 2024

Hi, it was trained with pytorch version 1.9.0+cu111
Maybe the information here helps.

from dense_depth_priors_nerf.

Karbo123 avatar Karbo123 commented on August 21, 2024

@barbararoessle
I had the same problem here. I have tried pytorch version like 1.8.0+cu111, 1.9.0+cu111, 1.10.2+cu111, 1.12.1+cu116, but unfortunately none of these worked. It is very likely that the checkpoint has been corrupted. By the way, I cannot extract the 20211027_092436.tar on Linux platform, and got the following messages when extracting:

tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

Strangely, I can extract the tar file on Win11. I am not sure what is wrong with the pretrained model downloaded here.

When I try to load the model weight from file, I always got the message like this, despite different pytorch versions:

_pickle.UnpicklingError: A load persistent id instruction was encountered,
but no persistent_load function was specified.

I load the checkpoint with something like: torch.load("./experiments_denseDepthPriors/20211027_092436/archive/data.pkl").

I have no idea on the way to solve it, I would truly appreciate if you can help me.


Update

I found a fix. It should be mentioned in the README that the checkpoint file must be renamed from "20211027_092436.tar" to "20211027_092436.pkl", and just simply load the "20211027_092436.pkl".

from dense_depth_priors_nerf.

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.