Comments (3)
Hi,
First of all very nice paper and architechture! Ive been playing with the training code and trained a model with my own data. However after a couple of epochs im getting a Nan loss and after some debugning it seems like its the output of the model returns a nan tensor. I played a little bit with gradient clipping to see if it would help but it does not seem to be the case.
Best regards
Hi
Have you found a solution.I'm facing the same problem
from adabins.
One reason might be that at some point loss has a 'nan' value. What is the minimum depth you are using?
The code uses SILog and if your depth has zeroes (or negative) this will lead to nan values.
If that's the case, you can:
- Clip (from below) your depth values to some minimum positive value (like 1e-3).
- You can change the loss in line 19 in loss.py (
Line 19 in 2fb686a
to :
alpha = 1e-3
g = torch.log(alpha + input) - torch.log(alpha + target)
Let me know if this solves the issues.
from adabins.
from adabins.
Related Issues (20)
- Inference and visualization
- Training HOT 1
- Outdoor application
- Training KITTI HOT 1
- For the configuration of the SUNRGBD dataset parameters?
- Tran: 0% HOT 1
- About Range attention maps
- RuntimeError: The size of tensor a (4096) must match the size of tensor b (500) at non-singleton dimension 2 HOT 2
- Question about Max, Min Depth Value HOT 1
- Tokens used for regressino & queries HOT 1
- Dataset mentioned in the paper
- Add pretrained models (.pt) to release? HOT 1
- Question about 1-cycle policy
- hello,i do not know the meaning of the train_test_input/*.txt
- RuntimeError: Given groups=1, weight of size [256, 128, 1, 1], expected input[1, 98, 176, 144] to have 128 channels, but got 98 channels instead HOT 1
- How much GPU memory is needed to train this network HOT 1
- bin_widths always turn to 000001
- How to train HOT 1
- RuntimeError: CUDA error: invalid device function
- RuntimeError: Unexpected error from cudaGetDeviceCount()
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 adabins.