-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
[Feature Request]: Add option to go back to old non-tree Extra Networks view #15091
Comments
Yes but then the way to browse the folders which used to be at the top is gone. I have a similar request, but it's from a performance point of view. Even switching to the "Checkpoints"-tab, now it takes 5-10 seconds before any link becomes clickable on the page, meaning the page is restructuring/refreshing something to the point of being unresponsive meanwhile. The same happened in Forge which had this update included a while back. |
Yes please, add the option to let us see buttons for filtering, the tree view is pretty much unusable with 2k loras |
Another vote for having the option of using the old directory buttons. Much more intuitve and easier to use for myself and the way I have my Loras, etc organised. |
Agree! I'd like to say I prefer the legacy one. Now the 'tree' itself takes up lots of space and I feel harder to locate and filter my Loras. TBH I have don't have so many layers in the tree and the structure of those Lora folders is kinda 'flat'. The buttons are more intuitve I reckon. |
But remember: I'm not sure where to start looking at it. Any insights and maybe I can help debugging. |
I'm looking into the problem. If you're also interested, look in |
@Sj-Si I guess the best approach would be to rollback and implement this feature as an extension. I've rolled back #14588 in my fork and applied all subsequent commits up to eee46a5. I'm unsure if I should submit a PR, but you might find it helpful if you decide to follow my advice. I've also noticed that sorting by "Path" doesn't function the way it did previously. And SVG icons, unlike emoji symbols, cannot be replaced in UI extensions like Lobe Theme. |
I wouldn't mind if it was just a vertical folder tree. But it should be expanded to the root list of folder by default, and there should be an option to not show the models in the tree. I have wide monitors and never liked how the old buttons sorted sub folders at the end of the list. I like the idea of a vertical folder tree. But there are so many confusing choices and bugs with this current implementation.
These things should be easy fixes and would probably make most people happy.
There should also be settings for:
The area should be drag resizable |
Also a suggestion for not showing everything in every subfolder under a given directory would be probably helpful in dealing with performance as well, it should act like every other file browser does and only shows the loras at the level currently selected. If one wants to search one folder or everything in a folder that should be separate. This would in fact be very helpful regardless of whether one uses the tree view or the old (imo unintuitive when you actually have more than 1 level of sorting) view. However i find it strange that this seems to be a performance issue at all, the tab is not inherently doing more than showing thumbnails and a little bit of text. I assume no actual loading of items into memory is occurring until a prompt is actually calling for it, since you can drop a new lora into the lora folder and call it in a prompt without clicking refresh on the lora tab. So is there actually more steps going on behind the scenes that maybe could be looked at? |
Regarding performance: So I suspect something is checking it constantly. Additionally, it's also sorting weirdly for me, almost like reversed by folder name, meaning in my root LoRA folder, all models in a later letter shows up before earlier letters. But this was an issue before the tree view. |
I'd say put in a PR for it. It would at least give me time to rewrite this stuff and fix the problems. How did you roll it back by the way, did you just manually revert my commits or what? I've never reverted a merged PR before so I don't know the best process for that when Github can't automatically revert it.
I hadn't thought of the SVG thing. What would be a better approach? Should I instead store the icons as files locally and reference those? That way people making themes could simply swap out those files for something else.
Do you mean that all directories should just be expanded? Or only the root level directory should be expanded?
Yeah haha this was really my first time messing with HTML/CSS/JS so I was trying to make it as robust as possible but I guess it didn't quite work out.
Yeah I wasn't really sure how I should handle this one. I thought it might be unintuitive if someone were to click on a directory and not see all of the models in subdirectories. For me at least, I want to see all subdirectory models and I can drill down further if I want to narrow the set of results.
Honestly I don't have any performance issues and I have hundreds of models/loras. However I did create 10,000 files to populate the list and it does definitely slow down. At the same time, if you have 10,000 models then you need to clean up your files or something or don't save your model every step of training. The performance is just caused by an insane number of HTML nodes being redrawn or something. I'm still investigating the cause of the problem but I'm struggling a bit. I'm trying to find some way of reducing the number of elements in the DOM by dynamically loading elements when scrolling through the lists. Either way, I don't know why the previous version performs better with the same number of models. I've even totally removed the tree view from the page and it still performs slower than before even though everything should be practically the same.
In my attempts to fix these problems I updated the filter textbox so it only actually performs a filter after ~500ms of not typing. Previously it was just applying the filter on every key press event. |
Thanks for the update and it looks like good solutions. Regarding the 10k models: Before 1.8 it was smooth. I could filter the list near-instantly, and switch tabs instantly. Keeping in mind I also have all models sorted in careful subfolders, so my subfolder list was huge the way it was displayed before. I think the tree view is a good improvement to it, except that it takes up so much permanent screen space compared to the folder-labels before. They would only take up space at the top of the screen. As it is right now, I navigate with the folder view, then close it, to make it not take up 1/5 of the screen-space. A bit tedious and frustrating for sure. Especially considering toggling the folder view also takes ~2 seconds with my list. |
Yeah when I revise this code I'll do something to add the old style of buttons as well as allow resizing the pane. HTML really isn't my forte so trying to figure out why this is all so slow is a bit difficult for me. Out of curiosity... how much disk space does 10k models take up? |
Just root for starters. Instead of Seeing
I do have subfolders, and don't mind expanding to go down a layer or too. But it seems useless to have the root folder collapsed by default.
For me I only have about 4k Loras but it takes up about 380GB |
The old view with buttons in a row for the existing folders acting as a filter, is what we're talking about here? because I've gone mad searching to activate that function again, cause I thought I had enabled it sometime ago, but it's gone, correct?! |
Yes, the old row of folder-buttons which sent that folder-name to the filter box is gone. |
There is an extension that does this. |
I'm unsure if it's possible to make this automatically)) So I took the following steps:
The simplest and most dependable way is to use emojis since they are merely a collection of characters. Honestly, I felt a bit uneasy suggesting a rollback :) I see the considerable effort you and other contributors have invested. However, the legacy display method proves to be more convenient for many users (myself included). Therefore, I believe implementing as the extension is indeed could be a fitting solution. |
I tested this, and it doesn't quite do it. It does however fix the file path sorting. Instead of putting a folder named "Z" at the top, it now puts it at the bottom as it should be. |
Looks like it's 8867 .safetensor-files at least. |
Thank you for the demonstration! |
This has been added back in via a551a43, along with several other optimizations to improve performance of sorting and filtering. |
Is there an existing issue for this?
What would your feature do ?
Feature #14588 changes the view for Extra Networks and removes the previous view completely. It does not look very good with how it truncates filenames and reduces entries on browsers not on full-screen (see screenshot). Additionally, it adds "more clicks" to the workflow than the previous view.
Can there be a setting added to let us go back to the pre-Tree view from before v1.8.0?
Proposed workflow
Additional information
No response
The text was updated successfully, but these errors were encountered: