Skip to content
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

TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType' #3007

Open
RalkeyOfficial opened this issue Dec 8, 2024 · 1 comment

Comments

@RalkeyOfficial
Copy link

I am getting this error when pressing start training

Traceback (most recent call last):
  File "C:\kohya_ss\venv\lib\site-packages\gradio\queueing.py", line 536, in process_events
    response = await route_utils.call_process_api(
  File "C:\kohya_ss\venv\lib\site-packages\gradio\route_utils.py", line 321, in call_process_api
    output = await app.get_blocks().process_api(
  File "C:\kohya_ss\venv\lib\site-packages\gradio\blocks.py", line 1935, in process_api
    result = await self.call_function(
  File "C:\kohya_ss\venv\lib\site-packages\gradio\blocks.py", line 1520, in call_function
    prediction = await anyio.to_thread.run_sync(  # type: ignore
  File "C:\kohya_ss\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
  File "C:\kohya_ss\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2505, in run_sync_in_worker_thread
    return await future
  File "C:\kohya_ss\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 1005, in run
    result = context.run(func, *args)
  File "C:\kohya_ss\venv\lib\site-packages\gradio\utils.py", line 826, in wrapper
    response = f(*args, **kwargs)
  File "C:\kohya_ss\kohya_gui\lora_gui.py", line 1138, in train_model
    int(lr_scheduler_num_cycles)
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

I don't have any other information to give, sadly enough.
I can give my training settings .json file if requested.

@RalkeyOfficial
Copy link
Author

Nevermind,
I found out my issue.

I removed the LR # cycles and LR power option..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant