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

Loading configs fails with an UnboundLocalError #261

Closed
glindsey opened this issue Mar 2, 2023 · 1 comment
Closed

Loading configs fails with an UnboundLocalError #261

glindsey opened this issue Mar 2, 2023 · 1 comment

Comments

@glindsey
Copy link

glindsey commented Mar 2, 2023

As of the latest commit while writing this (f6b261de5272136db4d6da1e09d15eba6d23ef6e), attempting to load a config file fails and results in the following error:

Loading config...
Traceback (most recent call last):
  File "...\kohya_ss\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "...\kohya_ss\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api
    result = await self.call_function(
  File "...\kohya_ss\venv\lib\site-packages\gradio\blocks.py", line 833, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "...\kohya_ss\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "...\kohya_ss\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "...\kohya_ss\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "...\kohya_ss\dreambooth_gui.py", line 213, in open_configuration
    my_data = update_optimizer(my_data)
UnboundLocalError: local variable 'my_data' referenced before assignment

Reverting to commit 7f0e5683c6b4e784f4a20647dbfa45aaa579467c fixes this problem.

@bmaltais bmaltais mentioned this issue Mar 2, 2023
Merged
@bmaltais
Copy link
Owner

bmaltais commented Mar 2, 2023

Fixed in the new update.

@bmaltais bmaltais closed this as completed Mar 2, 2023
Cauldrath pushed a commit to Cauldrath/kohya_ss that referenced this issue Apr 5, 2023
metadata |= to metadata.update

Thank you! I forget to fix this.
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

2 participants