Comments (5)
@sameer56 please check your configuration file, the val_batch_size
parameter is probably empty.
from seamseg.
Hi,
Thanks for the previous response.As you mentioned train_batch_size and val_batch_size were null, I have set the value for train_batch_size and val_batch_size in the .ini file(config/defaults) as 2 & 1 respectively, but when I try to fetch the same value in code iam facing the same error.
from seamseg.
@sameer56 As described here in the README, parameters are specified by providing a configuration file to the training scripts. The files in config/defaults
just include the list of all available parameters with some meaningful default values, so you shouldn't modify those. Please try and follow the procedure described in the README, that should solve your issues.
from seamseg.
The error message invalid literal for int() with base 10 would seem to indicate that you are passing a string that's not an integer to the int() function . In other words it's either empty, or has a character in it other than a digit.
You can solve this error by using Python isdigit() method to check whether the value is number or not. The returns True if all the characters are digits, otherwise False .
if val.isdigit():
The other way to overcome this issue is to wrap your code inside a Python try...except block to handle this error.
Python2.x and Python3.x
Sometimes the difference between Python2.x and Python3.x that leads to this ValueError: invalid literal for int() with base 10 .
With Python2.x , int(str(3/2)) gives you "1". With Python3.x , the same gives you ("1.5"): ValueError: invalid literal for int() with base 10: "1.5".
from seamseg.
All possible working solution added [Solved] ValueError: invalid literal for int() with base 10
from seamseg.
Related Issues (20)
- Any default config file for only semantic segmentation? HOT 1
- Where can I find the index -> class mappings produced by train_detection? HOT 1
- RuntimeError: CUDA out of memory. Tried to allocate 464.00 MiB (GPU 1; 10.92 GiB total capacity; 8.43 GiB already allocated; 323.50 MiB free; 1.56 GiB cached) HOT 1
- fatal error: nms.h: No such file or directory #include "nms.h" HOT 7
- Is it necessary to use coarse data to reproduce your Cityscapes result? HOT 1
- CUDA out of memory HOT 2
- Get panoptic outputs HOT 6
- boxes_out instead of boxes HOT 1
- Traning on COCO Dataset?
- I have only one GPU,can I train it ? HOT 1
- Mseg Dataset !
- training with resolution 1024 HOT 1
- Script pth.tar to COCO format available?
- ImportError: ~/anaconda3/lib/python3.7/site-packages/inplace_abn/_backend.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail36_typeMetaDataInstance_preallocated_7E HOT 2
- ImportError: libtorch.so: cannot open shared object file: No such file or directory HOT 1
- Update README & `requirements.txt` to accurately reflect dependency versions
- Add `install_requires` to `setup.py`
- Creating a Colab HOT 2
- TypeError: 'NoneType' object is not subscriptable HOT 1
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 seamseg.