Code Monkey home page Code Monkey logo

promptsbrowser's People

Contributors

alpacainthenight avatar unclepsymon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

unclepsymon

promptsbrowser's Issues

Sometimes changing the weight doesn't work

Sometimes changing the weight of the current prompt card using the mouse wheel doesn't work.

Although I had such a bug, I was not able to reproduce it in a later time. I am not sure under what conditions this bug occurs.

[BUG/Request] Cant save files with SPACE in them.

Hey, first of all thx for the extension.

I have ran into a little problem, it wont save previews if they have spaces in them.

PromptsBrowser: 18:17:53 -> failed to save preview: file "F:/sd.webui/webui/outputs/txt2img-images/2023-10-02/realisticVisionV51_v51VAE/realisticVisionV51_v51VAE%20-%202023.%20Monday.%2002.%20October%20-%20kl.18.15.51.png" not found

Are there something you can do about it, or do i need to change the way i structure my images?
I like to have it like "realisticVisionV51_v51VAE - 2023. Monday. 02. October - kl.18.15.51"

Feature | Rename existing collection/style

Unless i'm just not seeing it, there doesn't seem to be a way to rename existing styles or collections. If i want to reorganize or fix a spelling mistake it would be great to just simple be able to rename these things.

The extension does not run without internet access

Without an internet connection, some browsers may wait too long to download fonts from google services, which causes the extension to expire its loading attempts timeout.

Rising number of attempts or timeout between them can solve this, but this is not a very elegant solution.
Can be changed in the index.js - PromptsBrowser.initPromptBrowser method.

Allow Prompt Collections and Styles to have preview source

The Issue

The ability to add preview images to each prompt in a collection and each style is super helpful and one of the main reasons i got this extension. However, often time different checkpoints or loras could result in a drastically different look/effect. The most obvious is anime vs live action, if i'm using a live action checkpoint, previews in an anime style may not be as helpful.

The Solution

I propose we add a dropdown that lets the user select a preview source. The user should be able to add and remove new entries to this list. So lets say we have preview source A and B. If source A is selected then all previews for both prompt collections and styles should show previews associated with source A. If the user then selects source B then previews will swap to only show the previews for source B. This allows us quickly see what are prompts would look like in various styles that we set.

Considerations

  • I imagine it should be implemented in a way to that allows filtering based on if a preview exists to still work properly depending on what preview source is selected. So if we only want to see prompts without a preview, and we add preview to every prompt but it's only tied to prompt A then when this filter is active no prompts should show. but if we change preview source to B then (which has no previews set for any of the prompts yet) then it should show all prompts.
  • When generating new previews the previews should be saved to the currently selected preview source

Allow styles with no positive prompt

I made a collection of my negative prompts so that i can just click from a list of them to add. However, it seems like the style won't save unless there is at least one positive prompt. Would be nice if this wasn't necessary

UI any plans to correct it?

Discussed in #8

Originally posted by silveroxides September 25, 2023
That is a very invasive UI. Also the fact that it does not adhere to the Gradio theme set makes it even worse.
After I saw no way to fix this without editing it and rewriting the whole UI part I just disabled it.
Are there any plans to correct this so it actually uses the gradio theme set inside SD-Webui?

Migrate to Typescript

The code had become much larger than I originally planned and it is not convenient to continue developing the project in its current form. It's worth switching to Typescript and automatic bundling.

Save a reduced size preview image

I was saving all my portraits at 1664 x 2432 which is the normal size i typically render at since it often results in some extra details and bigger is always better. We'll except that it seemed like this was causing some massive slowdown when scrolling and hovering over prompts in the prompt collection. I converted them all to 104 x 152 and performance was instantly improved.

Instead of using the original full sized file we should create a thumbnail version of each preview that maintains aspect ratio. The original should still be saved though as the larger sized image is still really nice for the larger hover preview and background previews.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.