Comments (9)
Ok, I find, my image size is not 640 \times 192 or 1024 \times 320
from lite-mono.
Hi, which file did you run? Can you copy the complete error message?
from lite-mono.
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.
What version of PyTorch are you using? There seems to be a problem on the PyTorch side.
from lite-mono.
torch 1.12.1, Which version did you use in LiteMono?
from lite-mono.
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.
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.
Glad you found the problem! If you want to train with different image sizes, you can modify the code.
from lite-mono.
Many thanks for your patience and help! 😊
from lite-mono.
Related Issues (20)
- Hi,I've got some new questions HOT 9
- Some question about the result HOT 4
- The edges of the image are foggy and blurry during the training process HOT 4
- Inexplicable "No such file or directory: 'Lite-Mono-main\\kitti_data\\\2011_09_26/2011_09_26_drive_0002_sync\\\image_02/data\\- 000000001.png'" HOT 2
- the CPU utilization has been very high, but the GPU utilization has been very low HOT 2
- training with Nuscenes dataset HOT 39
- About indicator sq_rel HOT 6
- Test outputs is black HOT 8
- I read your paper “For models trained from scratch an initial learning rate of 5e−4 with a cosine learning rate schedule [26] is adopted” But how should I implement it in the code? HOT 4
- How the reproduction of the results of the model achieves the results in the paper HOT 6
- Hello, my reproduction code is exactly the same as the code uploaded by the author of the paper, CUDA11.0, PyTorch 1.7.1. Please check your code and replace your CUDA and pytorch version.
- model reproduction HOT 11
- Hello, I have some questions regarding the model training with the KITTI dataset HOT 4
- Pre-training Weights HOT 1
- about pretrain acc HOT 1
- the results of training are black pictures HOT 5
- test code for pose HOT 2
- Subsequent issues with gt_depths.npz HOT 4
- sorry to bothering you HOT 1
- Output resolution problem HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lite-mono.