Git Product home page Git Product logo

Comments (10)

guangkaixu avatar guangkaixu commented on August 17, 2024

@lw0210 Hi, thanks for reporting this bug!

This bug happens due to the absence of high-quality and mid-quality datasets, and we have fixed this situation in our latest code.

from adelaidepth.

lw0210 avatar lw0210 commented on August 17, 2024

Thank you @guangkaixu . I have run the latest code. I can run demo, but run sh train Sh the error message displays "typeerror: 'nonetype' object is not subscribable"

The contents are as follows:
Traceback (most recent call last):
File "/home/liwei/anaconda3/envs/LeReS/lib/python3.7/site-packages/torch/utils/data/utils/worker.py", line 185, in _ worker loop
data = fetcher.fetch(index)
File "/home/liwei/anaconda3/envs/LeReS/lib/python3.7/site-packages/torch/utils/data/utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly
batched_ index]
File "/home/liwei/anaconda3/envs/LeReS/lib/python3.7/site-packages/torch/utils/data/utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly
batched_ index]
File "/home/liwei/anaconda3/envs/LeReS/lib/python3.7/site-packages/torch/utils/data/dataset.py", line 207, in __ getitem__
return self.datasets[dataset_idx][sample_idx]
File "/home/liwei/paper31/AdelaiDepth/LeReS/Train/data/multi_dataset.py", line 79, in __ getitem__
data = self.online_ aug(anno_index)
File "/home/liwei/paper31/AdelaiDepth/LeReS/Train/data/multi_dataset.py", line 114, in online_ aug
rgb = cv2.imread(rgb_path)[:, :, ::-1]# rgb, HWC
TypeError: 'NoneType' object is not subscriptable

from adelaidepth.

guangkaixu avatar guangkaixu commented on August 17, 2024

@lw0210 This error occurs due to the incorrect rgb_path in train_annotation.json. Please prepare the training data following the step 'Training-2' and put it under Train/datasets. If you would like to train on customized datasets, please generate the train_annotation.json first, which contains rgb_path and depth_path at least.

from adelaidepth.

lw0210 avatar lw0210 commented on August 17, 2024

I have downloaded the four datasets (in the win system) again and put them in the corresponding positions as required. I still have this error "typeerror: 'nonetype' object is not subscribable" during the operation (Holopix50k is removed) @guangkaixu

from adelaidepth.

guangkaixu avatar guangkaixu commented on August 17, 2024

@lw0210 The validation datasets should contain depth images rather than disparity images, which has been filtered automatically in our latest released code. Also, please update the annotation files of taskonomy according to download_data.sh.

from adelaidepth.

lw0210 avatar lw0210 commented on August 17, 2024

Hello, I passed the command sh train sh to run the training network and get some pth files. I put one of the files into the corresponding folder and run test_ depth.py or test_ shape.py, there will be an error keyerror: depth_ model。 I passed ‘torch load()’ command prints res50.pth and the pth I have trained. It shows that res50 contains [depth_model, shift_model, focal_model], my pth contains [step, epoch, batchsize, scheduler, val_err, model_state_dict, optimizer]. How can I get the model weights like res50.pth or res101.pth. @guangkaixu

from adelaidepth.

guangkaixu avatar guangkaixu commented on August 17, 2024

@lw0210 Hi, Sorry for the late response due to some busy work.

If you want to load the self-trained checkpoint, please follow this to modify your code: #44 (comment). It will be fixed later, thank you!

from adelaidepth.

lw0210 avatar lw0210 commented on August 17, 2024

Thank you! I can run the test_depth.py by loading the self-trained checkpoint and get depth map.But how can I run the test_shape.py?The 'shift_model' and 'focal_model' are still missing.How can I modify my code? @guangkaixu

from adelaidepth.

guangkaixu avatar guangkaixu commented on August 17, 2024

The code for 'shift_model' and 'focal_model' have not been released yet. We will consider reorganizing and releasing it but it will be time-spending. Thanks for your understanding!

from adelaidepth.

lw0210 avatar lw0210 commented on August 17, 2024

ok,Thanks!

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.