Skip to content

Fix LR scheduler issue on CI #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vfdev-5 opened this issue Mar 27, 2023 · 1 comment · Fixed by #241
Closed

Fix LR scheduler issue on CI #232

vfdev-5 opened this issue Mar 27, 2023 · 1 comment · Fixed by #241
Labels
bug Something isn't working ci CI related tickets help wanted Extra attention is needed

Comments

@vfdev-5
Copy link
Member

vfdev-5 commented Mar 27, 2023

Describe the bug

Currently CI is failing on segmenation example:

[ignite]: Configuration: 
{'accumulation_steps': 4,
 'backend': None,
 'data_path': '/home/runner/data',
 'debug': False,
 'eval_batch_size': 2,
 'eval_epoch_length': 4,
 'filename_prefix': 'training',
 'limit_sec': 60,
 'log_every_iters': 2,
 'lr': 0.007,
 'max_epochs': 2,
 'n_saved': 2,
 'num_classes': 21,
 'num_workers': 2,
 'output_dir': PosixPath('logs/20230320-090125-backend-None-lr-0.007'),
 'patience': 2,
 'save_every_iters': 2,
 'seed': 666,
 'train_batch_size': 2,
 'train_epoch_length': 4,
 'use_amp': False}
Traceback (most recent call last):
  File "/home/runner/work/code-generator/code-generator/dist-tests/vision-segmentation-all/main.py", line 181, in <module>
    main()
  File "/home/runner/work/code-generator/code-generator/dist-tests/vision-segmentation-all/main.py", line 177, in main
    p.run(run, config=config)
  File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ignite/distributed/launcher.py", line 316, in run
    func(local_rank, *args, **kwargs)
  File "/home/runner/work/code-generator/code-generator/dist-tests/vision-segmentation-all/main.py", line 83, in run
    trainer.add_event_handler(Events.ITERATION_STARTED, lr_scheduler)
  File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ignite/engine/engine.py", line 319, in add_event_handler
    _check_signature(handler, "handler", self, *(event_args + args), **kwargs)
  File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ignite/engine/utils.py", line 10, in _check_signature
    signature = inspect.signature(fn)
  File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/inspect.py", line 3113, in signature
    return Signature.from_callable(obj, follow_wrapped=follow_wrapped)
  File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/inspect.py", line 2862, in from_callable
    return _signature_from_callable(obj, sigcls=cls,
  File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/inspect.py", line 2261, in _signature_from_callable
    raise TypeError('{!r} is not a callable object'.format(obj))
TypeError: <torch.optim.lr_scheduler.LambdaLR object at 0x7fdc0baab0a0> is not a callable object
Error: Process completed with exit code 1.
@vfdev-5 vfdev-5 added bug Something isn't working help wanted Extra attention is needed ci CI related tickets labels Mar 27, 2023
@soma2000-lang
Copy link

@vfdev-5 let me give this a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci CI related tickets help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants