Git Product home page Git Product logo

Comments (5)

ducksoup avatar ducksoup commented on July 28, 2024

@sameer56 please check your configuration file, the val_batch_size parameter is probably empty.

from seamseg.

sameer56 avatar sameer56 commented on July 28, 2024

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.

ducksoup avatar ducksoup commented on July 28, 2024

@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.

linehammer avatar linehammer commented on July 28, 2024

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.

flutterq avatar flutterq commented on July 28, 2024

All possible working solution added [Solved] ValueError: invalid literal for int() with base 10

from seamseg.

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.