Giter VIP home page Giter VIP logo

Comments (9)

jiangxf0929 avatar jiangxf0929 commented on August 31, 2024 2

Ok, I find, my image size is not 640 \times 192 or 1024 \times 320

from lite-mono.

noahzn avatar noahzn commented on August 31, 2024

Hi, which file did you run? Can you copy the complete error message?

from lite-mono.

jiangxf0929 avatar jiangxf0929 commented on August 31, 2024

hello, My test command is "python test_simple.py --load_weights_folder ./tmp/Mytrain/ --image_path ./data/mydata/image_02/data/", train command is "python train.py --data_path ./data --model_name mytrain --num_epochs 30 --batch_size 2 --mypretrain ./preweights/lite-mono-pretrain.pth --lr 0.0001 5e-6 31 0.0001 1e-5 31". Error message is "-> Loading model from ./tmp/Mytrain/
Loading pretrained encoder
Traceback (most recent call last):
File "test_simple.py", line 192, in
test_simple(args)
File "test_simple.py", line 81, in test_simple
encoder = networks.LiteMono(model=args.model,
File "/Lite-Mono-main/networks/depth_encoder.py", line 384, in init
stage_blocks.append(DilatedConv(dim=self.dims[i], k=3, dilation=self.dilation[i][j], drop_path=dp_rates[cur + j],
File "/miniconda3/envs/nerf-pytorch/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1207, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'LiteMono' object has no attribute 'dilation'"

from lite-mono.

noahzn avatar noahzn commented on August 31, 2024

What version of PyTorch are you using? There seems to be a problem on the PyTorch side.

from lite-mono.

jiangxf0929 avatar jiangxf0929 commented on August 31, 2024

torch 1.12.1, Which version did you use in LiteMono?

from lite-mono.

noahzn avatar noahzn commented on August 31, 2024

I tested with PyTorch 1.7.1 and 1.12.1.
Could you check if you are using the correct checkpoints? For testing you need to load this checkpoint (default: Lite-Mono) by setting --load_weights_folder, and for training please load this file by setting --mypretrain

from lite-mono.

jiangxf0929 avatar jiangxf0929 commented on August 31, 2024

I have tested with your checkpoint (lite-mono_1024 and lite-mono_640), and it works. but when I use your pretrain.pth to train and test my data, the same error appears.

from lite-mono.

noahzn avatar noahzn commented on August 31, 2024

Glad you found the problem! If you want to train with different image sizes, you can modify the code.

from lite-mono.

jiangxf0929 avatar jiangxf0929 commented on August 31, 2024

Many thanks for your patience and help! 😊

from lite-mono.

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.