Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ValueError: invalid literal for int() with base 10: ''

Open
#14 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, pytorch

Research direction

Start at make_dataloader in test_panoptic.py, especially the config.getint("val_batch_size") call on line 80, and inspect the referenced config.ini. Run the reported test_panoptic.py command and confirm that the configuration value is handled as an integer without producing the shown ValueError.

Written by the indexing model from the issue text.

Description

Traceback (most recent call last):
File "test_panoptic.py", line 358, in
main(parser.parse_args())
File "test_panoptic.py", line 322, in main
Traceback (most recent call last):
File "test_panoptic.py", line 358, in
test_dataloader = make_dataloader(args, config, rank, world_size)
File "test_panoptic.py", line 80, in make_dataloader
test_sampler = DistributedARBatchSampler(test_db, config.getint("val_batch_size"), world_size, rank, False)
File "/usr/lib/python3.6/configparser.py", line 1283, in get
main(parser.parse_args())
File "test_panoptic.py", line 322, in main
test_dataloader = make_dataloader(args, config, rank, world_size)
File "test_panoptic.py", line 80, in make_dataloader
test_sampler = DistributedARBatchSampler(test_db, config.getint("val_batch_size"), world_size, rank, False)
File "/usr/lib/python3.6/configparser.py", line 1283, in get
fallback=fallback, **kwargs)
File "/usr/lib/python3.6/configparser.py", line 819, in getint
fallback=fallback, **kwargs)
File "/usr/lib/python3.6/configparser.py", line 819, in getint
fallback=fallback, **kwargs)
File "/usr/lib/python3.6/configparser.py", line 809, in _get_conv
fallback=fallback, **kwargs)
File "/usr/lib/python3.6/configparser.py", line 809, in _get_conv
**kwargs)
File "/usr/lib/python3.6/configparser.py", line 803, in _get
**kwargs)
File "/usr/lib/python3.6/configparser.py", line 803, in _get
return conv(self.get(section, option, **kwargs))
ValueError: invalid literal for int() with base 10: ''
return conv(self.get(section, option, **kwargs))
ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.6/dist-packages/torch/distributed/launch.py", line 246, in
main()
File "/usr/local/lib/python3.6/dist-packages/torch/distributed/launch.py", line 242, in main
cmd=cmd)
subprocess.CalledProcessError: Command '['/home/teai/Pramod/pramod_env/bin/python3', '-u', 'test_panoptic.py', '--local_rank=1', 'config=/home/teai/Pramod/Segmentation/seamseg/seamseg_r50_vistas/config.ini', 'model=/home/teai/Pramod/Segmentation/seamseg/seamseg_r50_vistas/seamseg_r50_vistas.tar', 'data=/home/teai/Pramod/Segmentation/seamseg/Input_dir/', 'out_dir=/home/teai/Pramod/Segmentation/seamseg/Output_dir']' returned non-zero exit status 1.

Dominant language
Python
Stars
301
Forks
53
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mapillary/seamseg

All issues in mapillary/seamseg

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.