Unable to choose which file to download.
Closed this issue · 19 comments
Hello,
With the newest version of civitai shortcut I cannot choose which specific file to download.
The only option is to download every file.
Can you make it so I can choose specific files?
Thank you
That's it, that doesn't work for me. When I choose one of the options it gets stuck on "queue" and "processing", "queue" and "processing", on a loop.
I'm using Windows 11 Pro, with the "COMMANDLINE_ARGS=--listen" on the .bat launch file so I can run Stable Diffusion on other devices.
I tested it on the same device with the same options and didn't encounter any issues.
I couldn't test it for remote connection with another PC.
I'm actually not sure where the problem lies because the code itself is ordinary.
I happened to think of VMware, so I tried a remote connection. The PC with SDUI installed was running Windows 11, and VMware was running Ubuntu with Firefox browser. I was able to operate it without any issues. Perhaps the issue is caused by a delay in the connection to the server.
It seems to be stuck in a recursive loop, but it shouldn't be possible since it uses the select event trigger, not the change trigger. It's behaving as if it were triggered by the change event, so it appears to be influenced unexpectedly from somewhere.
Is it possible to turn off other extensions and try running it?
It would have been enough to uncheck it in the extensions tab, but it seems like you deleted it completely. 😢
If you reinstall it, please make sure to keep the files CivitaiShortCut.json and CivitaiShortCutClassification.json, as they contain the saved shortcuts and classification information. Replace these two files after reinstalling.
Anyway , it's frustrating that it's still the same even after trying that.
edit: And if you execute "Manage -> Scan and Update Model -> Update the model information for the shortcut," it will download and retrieve the latest information.
It seems like I also encounter the last error screen while updating SDUI. I will need to investigate and check it out.
Little update: I've reinstalled the extension and still gives me the same error.
That error was not related to updating SDUI, but rather a problem that arose from changes in the model information specification in Civitai. Data needs to be updated. I have uploaded the fix urgently. To update the data, you can execute "Manage -> Scan and Update Model -> Update the model information for the shortcut," and it will download and retrieve the latest information. 😢
edit : You need to update Civitai Shortcut first.
Shall we proceed like this? Since I can't reproduce that situation, it might take some time to identify the cause. Since what you need is to select a file and download it, I'll make that possible for you.
You need some source code modifications. There are two files
The files are located in scripts -> civitai_manager_libs:
civitai_action.py
ishortcut_action.py
Please change line 45 of civitai_action.py as follows:
Change:
filename_list = gr.CheckboxGroup(show_label=False, label="Model Version File", choices=[], value=[], interactive=True, visible=False)
To:
filename_list = gr.CheckboxGroup(show_label=False, label="Model Version File", choices=[], value=[], interactive=True, visible=True)
Please change line 42 of ishortcut_action.py as follows:
Change:
filename_list = gr.CheckboxGroup(show_label=False, label="Model Version File", choices=[], value=[], interactive=True, visible=False)
To:
filename_list = gr.CheckboxGroup(show_label=False, label="Model Version File", choices=[], value=[], interactive=True, visible=True)
Afterwards, when you run it, you will see an option to select the file below the list of download options. From now on, you can use this option to make your selection.
It seems that using a trick to add checkbox boxes to Gradio's dataframe has caused some issues.
If you encounter the same issue in the next version, please try making a similar modification or reach out to me for assistance.
When you have the chance, I recommend updating sdui.
I should have thought of this first... I'm glad it's going well.