CivArchive
    Preview 1670174
    Preview 1670171
    Preview 1670175
    Preview 1670170
    Preview 1670169

    Promptvision

    Brand new rewrite. Now using CustomTkinter for native GUI via python.

    • Primarily useful for viewing generations (generated images) either in realtime as they are created or when you are cataloguing them (supports auto detect of new images in the folder you're viewing)

    • Shows metadata from forge / automatic1111 natively (I am using forge)

      • This means it will support other platforms that use the same way to store metadata

    • Has navigation shortcuts

      • D and A for moving next/previous images

      • F for marking an image as favorite

        • The viewer will store a favorites.json in each folder you open with the viewer so that you can have different favorites depending on what you're browsing.

    • Settings are stored in the same place as where you open the program

      • viewer_settings.json Contains information about your last opened directory, last position (you can resume browsing in the same folder if you close it), export directory (where you want to save favorites to) and auto update toggle (if you want to detect new images in the folder)

    • Gallery view of all images in the folder

      • You can press on an image to view that in the image viewer

    Note that when opening gallery view it will take a little while to load in most use cases. I've tried quite a few methods to improve the performance, but it is what it is. If you have auto update images on it might flicker a bit, especially if you're viewing the last gallery page which is being updated with new generations as you're viewing. Turn off auto update setting to reduce flickering.

    VirusTotal analysis of the program: https://www.virustotal.com/gui/file/617b644d673c84c1ccdc9c2287804102eba0e03b4ec9ca94f646b2175bbf62ff/detection

    There are 3 false positives. It seems that it's not completely possible to generate executables from python without these if not using a certificate.

    Build command:
    pyinstaller --name=Promptvision --windowed --onefile --add-data="assets/*:assets" --add-data="views/*:views" --hidden-import=PIL._tkinter_finder promptvision.py --clean --icon=assets/pvlogo.png

    Description

    • Complete rewrite of application from using Flask and custom CSS/JS/HTML to using Streamlit.

    • Quicker

    • Good filtering

    • Prompt analysis that enables insight into key themes

    FAQ

    Comments (57)

    dun2323sMar 22, 2023· 13 reactions
    CivitAI

    do not use this one ,it will chang your outputs color!!

    MagicalEroticaMar 22, 2023

    since it's on github and open source, it can be verified. Are you saying the color of the output of the images change? Or are you saying that the UI (user interface) changed color?

    Automaticism
    Author
    Mar 22, 2023· 2 reactions

    colorlog is a Python library that provides a colored log output to the terminal. It uses the ANSI escape sequences to apply colors and formatting to the log messages. The library makes it easy to add color to your log output, which can help make it more readable and visually appealing.

    ANSI escape sequences are a series of characters that are interpreted by terminal emulators to change the color and formatting of text. They start with the ESC character followed by square brackets and a series of numbers that specify the desired color or formatting. For example, to set the text color to red, you would use the sequence \033[31m. Both colorlog and colors use these escape sequences to apply color to terminal output.

    If a program forgets to escape a color sequence and it gets stuck in the terminal, you can use the following steps to remove it:

    1. Close the program that caused the color to get stuck.

    2. Type reset in the terminal and press Enter. This will reset the terminal to its default state, which should remove any color sequences that got stuck.

    3. If reset does not work, you can try typing the command tput reset instead. This will also reset the terminal.

    4. If the color still persists, you can try closing the terminal window and opening a new one.

    These steps should remove any stuck color sequences from the terminal. If the issue persists, it is possible that the program is continuing to send color sequences to the terminal, in which case you may need to fix the program to properly escape color sequences to prevent this issue from happening in the future.

    PooshkaMar 24, 2023· 12 reactions
    CivitAI

    I think it is generally a good idea to make specialized file browser/gallery with quick search and other relevant features to help people organize their generated images.

    But I'm hesitant to install and launch yet another web app (besides WebUI and Kohya's GUI). Something like this would be most useful as a plugin to AUTOMATIC1111's WebUI. It would also allow for tighter integration (buttons "Sent to txt2img" and such) and thus better user experience.

    Just my opinion.

    Automaticism
    Author
    Mar 24, 2023· 6 reactions

    I’ll look into converting this to gradio sd webui plugin tonight

    f2fMar 25, 2023· 2 reactions

    I haven't seen your comment before posting my own - I fully agree with you - this would be great inside A1111 and would fulfill a niche.

    897379Mar 31, 2023· 1 reaction

    The image viewer at the following URL is very comprehensive and already well integrated into the Automatic1111 UI, It can do all you ask for and a lot more. I use it all the time and I highly recommend it, There was a fork of this extension that many still have installed that was abandoned, I did until someone pointed me to this new fork which has been developed a lot and is actively updated.

    github.com/AlUlkesh/stable-diffusion-webui-images-browser

    Automaticism
    Author
    Mar 31, 2023

    @FUBAR23 is there something missing in that plugin compared to this? It might seem like it's actually better to use that then and that I will scrap the idea of making a plugin and just continue developing a standalone version. It might even be more prudent to add support for sdwebui API instead of making a plugin.

    897379Mar 31, 2023

    @Automaticism Id say there is nothing missing in that plugin , the dev AlUlkesh , who took on stable-diffusion-webui-images-browser has added so many useful functions I think its actually better than this one, things like EXIF keyword search, Ranking filter, send to everywhere including control-net, favourites, etc.

    There is IMO a call for a standalone image browser for SD generations and that is where this one has its niche and advantage, Id focus on developing that,

    The function this one has of saving exif info to an xml file could possibly developed to feed into this other extension where it could maybe converted to a prompt and wildcard library, that would be useful, github.com/adieyal/sd-dynamic-prompts

    Talk2GiuseppeNov 23, 2023

    @CAPTnFUBAR - Although that image browser has all the features, the interface is clunky and not at all user friendly. There is a need for a streamlined interface that can allow our hands to rest on the number pad and simply press a number to rifle through hundreds of images quickly to grade them. I have found no easy, quick method to sort through hundreds of generated images to find the gems for further processing. Perhaps this project is it? Also, the Image Viewer you recommend is so dang slow! Have you checked out the project from https://github.com/zanllp/sd-webui-infinite-image-browsing.git - it's amazingly fast!

    IamThorMar 24, 2023· 1 reaction
    CivitAI

    dont work for me.
    "fatal: could not create work tree dir 'GalleryViewerSD': No such file or directory"

    iam noob ^^

    Automaticism
    Author
    Mar 24, 2023

    Try to see the next guide I've added to the description. You should use the one with git clone and then run the commands.

    krististrasza476Mar 24, 2023
    CivitAI

    Working for a while then getting an error in the gallery view.

    OSError

    OSError: cannot write mode P as JPEG

    Traceback (most recent call last)

    File "E:\Programs\Python\lib\site-packages\PIL\JpegImagePlugin.py", line 643, in _save

    rawmode = RAWMODE[im.mode]

    The above exception was the direct cause of the following exception:

    File "E:\Programs\Python\lib\site-packages\flask\app.py", line 2551, in __call__

    return self.wsgi_app(environ, start_response)

    File "E:\Programs\Python\lib\site-packages\flask\app.py", line 2531, in wsgi_app

    response = self.handle_exception(e)

    File "E:\Programs\Python\lib\site-packages\flask\app.py", line 2528, in wsgi_app

    response = self.full_dispatch_request()

    File "E:\Programs\Python\lib\site-packages\flask\app.py", line 1825, in full_dispatch_request

    rv = self.handle_user_exception(e)

    File "E:\Programs\Python\lib\site-packages\flask\app.py", line 1823, in full_dispatch_request

    rv = self.dispatch_request()

    File "E:\Programs\Python\lib\site-packages\flask\app.py", line 1799, in dispatch_request

    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)

    File "e:\Programs\Promptvision-main\gallery.py", line 318, in thumbnails

    thumbnails = fetch_thumbnails(limit=limit, offset=offset)

    File "e:\Programs\Promptvision-main\gallery.py", line 189, in fetch_thumbnails

    thumbnail = (get_thumbnail_from_image(image))

    File "e:\Programs\Promptvision-main\gallery.py", line 165, in get_thumbnail_from_image

    img.save(thumbnail_path, format='JPEG', quality=85)

    File "E:\Programs\Python\lib\site-packages\PIL\Image.py", line 2431, in save

    save_handler(self, fp, filename)

    File "E:\Programs\Python\lib\site-packages\PIL\JpegImagePlugin.py", line 646, in _save

    raise OSError(msg) from e

    OSError: cannot write mode P as JPEG

    This is the Copy/Paste friendly version of the traceback.

    Traceback (most recent call last): File "E:\Programs\Python\lib\site-packages\PIL\JpegImagePlugin.py", line 643, in save rawmode = RAWMODE[im.mode] KeyError: 'P' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "E:\Programs\Python\lib\site-packages\flask\app.py", line 2551, in _call__ return self.wsgi_app(environ, start_response) File "E:\Programs\Python\lib\site-packages\flask\app.py", line 2531, in wsgi_app response = self.handle_exception(e) File "E:\Programs\Python\lib\site-packages\flask\app.py", line 2528, in wsgi_app response = self.full_dispatch_request() File "E:\Programs\Python\lib\site-packages\flask\app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e) File "E:\Programs\Python\lib\site-packages\flask\app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() File "E:\Programs\Python\lib\site-packages\flask\app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "e:\Programs\Promptvision-main\gallery.py", line 318, in thumbnails thumbnails = fetch_thumbnails(limit=limit, offset=offset) File "e:\Programs\Promptvision-main\gallery.py", line 189, in fetch_thumbnails thumbnail = (get_thumbnail_from_image(image)) File "e:\Programs\Promptvision-main\gallery.py", line 165, in get_thumbnail_from_image img.save(thumbnail_path, format='JPEG', quality=85) File "E:\Programs\Python\lib\site-packages\PIL\Image.py", line 2431, in save save_handler(self, fp, filename) File "E:\Programs\Python\lib\site-packages\PIL\JpegImagePlugin.py", line 646, in _save raise OSError(msg) from e OSError: cannot write mode P as JPEG

    The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error. If you enable JavaScript you can also use additional features such as code execution (if the evalex feature is enabled), automatic pasting of the exceptions and much more.

    Brought to you by DON'T PANIC, your friendly Werkzeug powered traceback interpreter.

    Automaticism
    Author
    Mar 24, 2023

    What formats are your images in, jpg? Png? Can you post an example image?

    Automaticism
    Author
    Mar 29, 2023

    This should be solved btw. This was related to https://github.com/Automaticism/Promptvision/issues/11
    If it isn't resolved I'll add an extra check for this, report back if you'd like.

    krististrasza476May 6, 2023

    @Automaticism bit late a response, but the images were in png and jpg format, a mixed unsorted gallery of photographs and generated images. I intended to use this tool to sort out the images containing prompts from the ones without.

    krististrasza476May 6, 2023

    @Automaticism thank you.

    RykeWollf13Mar 24, 2023
    CivitAI

    The instructions for the dependencies weren't all that clear to me so I wasn't able to get this working. Where am I supposed to write what exactly? Sorry I'm a complete noob at this.

    Ok so I can't get this to work ahah, I'm too much of a noob to run past the setup. Don't know where to type in the launch commands or anything like that. If someone can help me out I'd appreciate it.

    Automaticism
    Author
    Mar 24, 2023

    You have to open a terminal.

    Go to where you want to clone the folder, e.g. «Documents»

    In the terminal you do git clone as explained in this post.

    That will create a new folder in Documents that is called Promptvision Inside the folder you fins readme.md

    The readme.md that will show up in the folder Promptvision has instructions to install it.

    Automaticism
    Author
    Mar 24, 2023· 1 reaction

    Here are step-by-step instructions for opening a terminal, navigating to a folder, cloning a Git repository, creating and activating a virtual environment, installing the necessary dependencies, and running a Python script.

    For Windows:

    Open the Start Menu and type "Command Prompt" or "PowerShell" in the search bar. Click on the application that appears.

    Use the "cd" command to navigate to the "Documents" folder. Type "cd Documents" and press enter.

    Use the "git clone" command to clone the repository. Type "git clone [repository URL]" and press enter. Replace "[repository URL]" with the URL of the repository you want to clone. For example:

    git clone https://github.com/username/repository.git

    Use the "cd" command to navigate to the cloned repository. Type "cd repository" and press enter. Replace "repository" with the name of the cloned repository.

    Use the following commands to create a virtual environment, activate it, and install the necessary dependencies:

    python -m venv venv venv\Scripts\activate pip install -r requirements.txt

    These commands will create a virtual environment named "venv," activate it, and install the dependencies listed in the "requirements.txt" file.

    Finally, run the Python script with the following command, replacing "[your image folder]" with the name of the folder containing your images:

    python gallery.py --imagedir "[your image folder]"

    For Mac:

    Open the Terminal application. You can find it in the Utilities folder, which is inside the Applications folder, or by searching for it in Spotlight.

    Use the "cd" command to navigate to the "Documents" folder. Type "cd Documents" and press enter.

    Use the "git clone" command to clone the repository. Type "git clone [repository URL]" and press enter. Replace "[repository URL]" with the URL of the repository you want to clone. For example:

    git clone https://github.com/username/repository.git

    Use the "cd" command to navigate to the cloned repository. Type "cd repository" and press enter. Replace "repository" with the name of the cloned repository.

    Use the following commands to create a virtual environment, activate it, and install the necessary dependencies:

    python3 -m venv venv source venv/bin/activate pip install -r requirements.txt

    These commands will create a virtual environment named "venv," activate it, and install the dependencies listed in the "requirements.txt" file.

    Finally, run the Python script with the following command, replacing "[your image folder]" with the name of the folder containing your images:

    python3 gallery.py --imagedir "[your image folder]"

    For Linux:

    Open the Terminal application. You can usually find it in the Applications menu or by pressing Ctrl+Alt+T.

    Use the "cd" command to navigate to the "Documents" folder. Type "cd Documents" and press enter.

    Use the "git clone" command to clone the repository. Type "git clone [repository URL]" and press enter. Replace "[repository URL]" with the URL of the repository you want to clone. For example:

    git clone https://github.com/username/repository.git

    Use the "cd" command to navigate to the cloned repository. Type "cd repository" and press enter. Replace "repository" with the name of the cloned repository.

    Use the following commands to create a virtual environment, activate it, and install the necessary dependencies:

    python3 -m venv venv source venv/bin/activate pip install -r requirements.txt

    These commands will create a virtual environment named "venv," activate it, and install the dependencies listed in the "requirements.txt" file.

    Finally, run the Python script with the following command, replacing "[your image folder]" with the name of the folder containing your images:

    python3 gallery.py --imagedir "[your image folder]"

    f2fMar 24, 2023· 37 reactions
    CivitAI

    I suggest to make it an AUTOMATIC1111 plugin - I believe this would be a perfect complement to A1111 as image browser is quite limited. Great work!

    ktiseos_nyxMar 29, 2023

    Agreed - this one looks nicer, and the other one takes forever, plus i'm not a local install kinda kid i'm a "I HAVE TO USE COLAB" XD

    ActraiserMar 31, 2023
    CivitAI

    My browser detects it as a virus and I can't download it, could you help me please?

    Automaticism
    Author
    Mar 31, 2023

    What version did you try? What is the message?

    ActraiserApr 1, 2023· 1 reaction

    @Automaticism the version is 0.65, the message is: Trojan:Script/Wacatac.H!ml.

    But I just downloaded it without problems at this moment, I hope the errors that alerted my antivirus have been solved, thanks for the answer!

    Automaticism
    Author
    Apr 1, 2023· 1 reaction

    @Actraiser weird. CivitAI has a scanner, and I haven’t touched the version since I uploaded it. I’d assume it was a false positive.

    zengonzoApr 3, 2023

    Yeah, Windows Defender is flagging it as Wacatac.B.

    Well, it did when I wasn't logged in, but now that I am it is downloading OK.

    Automaticism
    Author
    Apr 3, 2023· 2 reactions

    To make sure that the files are clean I've downloaded the latest version I've uploaded and ran them through Virustotal.

    www.virustotal.com/gui/file/2cb8a232d132e8cf4ce42ac24520b03ddf44044a1e92bc1c734aefd318c24f06?nocache=1

    www.virustotal.com/gui/file/d2abc145eac706bae92a156985c59097ecadc3535980581bd4975ee1ebeb21b4?nocache=1

    netdzynrApr 3, 2023· 3 reactions
    CivitAI

    Using on MacOS, this is a great first effort. I've been wanting something like this for a while. Some features that would help:

    - Consider moving the forward/back navigation to the bottom of the viewer pane, in fixed positions. Currently, when switching between portrait and landscape images, the center pane resizes causing the nav buttons to shift away from the current mouse position. Make the buttons span the width of the pane width so they're easy to (consistently) hit.

    - Add an option to lock/unlock the size of the viewer pane so the above resizing doesn't occur.

    - Instead of shifting the thumbnails every time a new image is loaded, keep them in fixed positions and reposition the highlighter. The constant refresh is unnecessary and the fixed positions would allow quick scanning which is currently difficult since the thumbs are always changing position.

    - Make all panes horizontally resizable.

    - Add a trash option -- removing images is needed as much as assigning tags and filtering.

    - If you provide a field for the current directory, you should list it, instead of having it empty.

    Thanks for listening 👍

    Talk2GiuseppeNov 23, 2023

    While adding in a delete/trash option, would be nice to store the data of what was deleted for analysis. ie: 90% of all delete images was generate from a certain model, or LoRA, or prompt. This helps us remove those items from our configuration when we realize most of the time they are generating garbage.

    DerpastaApr 4, 2023· 1 reaction
    CivitAI

    why does this program make network callouts?
    and wtf are these in the logs?
    10.5.0.2 - - [03/Apr/2023 19:25:51] "GET / HTTP/1.1" 302 -

    10.5.0.2 - - [03/Apr/2023 19:25:51] "▬♥☺☻☺☺ü♥♥.QZo◄XÿÅB²_~Àþ¤£Ïõ

    ÇÛZ→H[Ê☺¼☺I↔饼òÆÉ)∟øeëú. ªª‼☺‼☻‼♥À+À/À,À0̨̩À‼À¶/5☺☺::" 400 -

    10.5.0.2 - - [03/Apr/2023 19:25:51] code 400, message Bad request version ('\x00\x14\x00\x12\x04\x03\x08\x04\x04\x01\x05\x03\x08\x05\x05\x01\x08\x06\x06\x01\x02\x01\x00\x05\x00\x05\x01\x00\x00\x00\x00\x00')

    ERROR 2023-04-03 19:25:51,210 [ERROR][_log] line:224 10.5.0.2 - - [03/Apr/2023 19:25:51] code 400, message Bad request version ('\x00\x14\x00\x12\x04\x03\x08\x04\x04\x01\x05\x03\x08\x05\x05\x01\x08\x06\x06\x01\x02\x01\x00\x05\x00\x05\x01\x00\x00\x00\x00\x00')

    10.5.0.2 - - [03/Apr/2023 19:25:51] "▬♥☺☻☺☺ü♥♥xÃ)N«»¶¥Ï¡«‼¿@ú,âÉ5^☺ÿ4ãá»4 1Wé▼ÁD&oã¹Bræn§>S¡­¢cÌ` | êê‼☺‼☻‼♥À+À/À,À0̨̩À‼À¶/5☺☺►

    ¶↕♦♦♦☺♣♣♣♠♠☺☻☺♣♣☺" 400 -

    torisaatoApr 4, 2023· 1 reaction

    this looks concerning

    Automaticism
    Author
    Apr 4, 2023· 1 reaction

    Promptvision is a "web" app. It's running locally using Flask.

    Flask is a popular Python web framework that allows developers to quickly build web applications. It is a lightweight and flexible framework that follows the Model-View-Controller (MVC) architectural pattern. Flask provides a simple and easy-to-use interface for handling HTTP requests and responses, routing URLs to Python functions, and managing web application contexts.

    When you connect to your own Flask app, you may see web requests being made because that is how web applications work. When a user interacts with a web application, their web browser sends HTTP requests to the server, which then processes the requests and returns a response back to the browser. The requests and responses are sent using the HTTP protocol, and they contain information such as headers, cookies, and data payloads.

    In the case of Flask, when you start your app and connect to it using a web browser, the browser sends HTTP requests to your Flask server, which then routes those requests to the appropriate Python function based on the URL. The Python function then processes the request, potentially querying a database or performing some other operation, and returns a response back to the server, which then sends the response back to the browser.

    So, seeing web requests when you connect to your Flask app is completely normal, and it is an essential part of how web applications work.

    DerpastaApr 4, 2023

    @Automaticism so why is the application issuing what look like outbound get requests?
    And what the hell is being obscured by all these weird unicode chars in the printouts?

    Automaticism
    Author
    Apr 4, 2023· 2 reactions

    @Derpasta not sure. Which version did you try to run? I haven't seen such garbled output before. Your hostility isn't helping much either. The source code is there, have a look.

    Do you perhaps use a different language with different characters than latin/utf-8 supported ones?
    Are your pathnames / file names broken?

    You are not giving me much to work on.

    It also seems that you have removed parts of the log entries now that I run it and see the same logs you have seemingly been posting here.

    INFO 2023-04-04 22:26:15,166 [INFO][_log] line:224 127.0.0.1 - - [04/Apr/2023 22:26:15] "GET /thumbnails?limit=120&offset=0&imgsrc=00692-1981244656_proc.jpg HTTP/1.1" 200 -

    If you want more help debugging you have to provide full logs. You can get that by launching the gallery with --log DEBUG or launching the exe with the parameter.

    The IP address which you see above here in the 127.0.0.1 one:

    Yes, the Flask app logs the IP address of the client making the request in the log output. In the log field you provided, "127.0.0.1" is the IP address of the client. This IP address corresponds to the loopback interface or localhost, which means that the client and the server are running on the same machine.

    In a production environment, you would typically see the IP address of the client as the public IP address assigned to the client by their ISP. This can be useful for monitoring and debugging purposes, as you can use the IP address to track the origin of requests and identify potential security threats.

    DerpastaApr 4, 2023· 1 reaction

    @Automaticism my apologies for any perceived hostility; I get a bit dramatic when I can't figure out what a piece of tech is doing, particularly when it feels a bit sketchy. I didn't necessarily mean to accuse, but I think you can understand my confusion and concern when finding bizarre log output like this.

    No, I don't have any special characters in any of my file paths; certainly nothing more special than spaces (yes the normal kind, not any weird unicode whitespace chars).

    I don't think I removed anything from between those log statements, I just copied and pasted one continuous segment of output that contained symbols. Or maybe I did that for two weird outputs, I can't recall...

    Automaticism
    Author
    Apr 4, 2023· 1 reaction

    @Derpasta if you want to try it again you can either setup a new clean virtual / conda environment (described in the readme) or you can try to run the executable. The executable is created with pyinstaller and has all dependencies packaged together so that you don't have to install anything.
    Both the latest versions have been ran through virustotal. You can also run the files through there yourself if you want.

    (You also didn't specify the version, nor if you tried on MacOS, Windows or Linux.)

    torisaatoApr 5, 2023· 1 reaction

    Thanks for the clarification, I was thinking of the encoding on a different part of the world too, but hard to tell without details. Love this app.

    DerpastaApr 5, 2023

    @Automaticism Windows version, installed by pulling from git and following your instructions. I'm the type to always do a git pull before launching, so it would have been the newest version at the time of my post (about 34 hours ago now).

    There were no crazy chars in the file path ("..\stable-diffusion-webui\outputs\txt2img-images"), but maybe the application got choked because my first run was attempting to view my entire SD outputs folder (over 2k files and 60 subfolders)?

    refulApr 5, 2023
    CivitAI

    hello, github/powershell noob here, would you be able to explain (or link to) how getting updates for this would work for someone who installed through powershell? i was able to get the program itself working with no problem thanks to your excellent instructions, so i thought you might have advice on this. thank you for the awesome work, this has been quite useful

    Automaticism
    Author
    Apr 5, 2023

    When you clone a Git repository, you create a copy of the codebase on your local machine. To update the repository with the latest changes made by others, you can follow these steps:

    1. Open your terminal or command prompt.

    2. Navigate to the folder where you cloned the Git repository. You can use the cd command to change directories. For example, if your repository is located in a folder called "my-repo", you can navigate to that folder by typing cd my-repo.

    3. Once you're inside the repository folder, run the command git pull. This will fetch the latest changes from the remote repository and merge them with your local copy.

    That's it! Your local copy of the repository should now be up to date with the latest changes from the remote repository.

    cubpupApr 17, 2023
    CivitAI

    I downloaded this and now I can't even run stable diffusion... its just locked in the cmd console loading weights.... im livid

    Automaticism
    Author
    Apr 19, 2023· 1 reaction

    How would this interfere with stable diffusion? You didn’t specify which version you tried, nor which stable diffusion front end you are using.

    If you followed the instructions you should have created a new virtual environment for this which should help you not contaminate your different projects.

    OmikonzFeb 19, 2024

    did you try turning your computer off and on again? Are you from the past?

    CyrilSamosaApr 19, 2023· 4 reactions
    CivitAI

    Nice Project you got there!

    If you don't mind, i'll plug a little project of mine that might be of help to you.

    Also, working together trumps competing anyways :-).

    (It's just a parsing lib, but with the growing number of formats, it get's old to redo everything everytime)

    https://github.com/d3x-at/sd-parsers

    AlyndiarAug 21, 2023
    CivitAI

    When trying to run this, I get the following:
    2023-08-21 18:37:42.286 Uncaught app exception

    Traceback (most recent call last):

    File "D:\anaconda3\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in runscript

    exec(code, module.__dict__)

    File "W:\seait\Promptvision\Promptvision.py", line 3, in <module>

    import pvision

    File "W:\seait\Promptvision\pvision.py", line 4, in <module>

    from sdparsers import ParserManager

    ModuleNotFoundError: No module named 'sdparsers'

    Any help you could provide?

    Automaticism
    Author
    Aug 22, 2023

    Did you run pip install -r requirements.txt ?
    That should install sd-parsers which is required to run this

    LostAtSeaSep 20, 2023
    CivitAI

    for some reason its not able to view images that are more than 200mbs which feels very limiting since most people tend to upscale

    Automaticism
    Author
    Sep 24, 2023· 1 reaction

    Could you copy paste what the log said when you tried to view a 200 mb image? (I've never upscaled to 200mb so far, mine tend to be 20-30 mb) And what kind of resolution is an image of that size? Then I could try to recreate it on my end.

    AlyilaNov 29, 2023

    @Automaticism Got 1360 image 180mb for all. Works fine when i select a folder that only have 360 images and 112mb for all.

    MessageSizeErrorData of size 253.6 MB exceeds the message size limit of 200.0 MB.

    This is often caused by a large chart or dataframe. Please decrease the amount of data sent to the browser, or increase the limit by setting the config option server.maxMessageSize. Click here to learn more about config options.

    Note that increasing the limit may lead to long loading times and large memory consumption of the client's browser and the Streamlit server.

    LostAtSeaDec 3, 2023

    @Automaticism Yeh what he posted. I switched so something else called breadboard, but the message @Alyila posted is exactly what I remember seeing

    Automaticism
    Author
    Dec 3, 2023

    You can adjust the --server.maxMessageSize 2048 on launch. Set e.g. 4096.

    streamlit run .\promptvision.py --server.maxMessageSize 2048

    That should probably help with the issue. Adjust this as high as needed.

    OtakuFraOct 9, 2023
    CivitAI

    Looks pretty good, the native system is a bit...well not very handi, but i'm sorry, i'm pretty new in all this, where am i supposed to install this and how ? I'm not familiar with python at all...i'm a disgrace ^^'

    Thx anyway for this tool

    Automaticism
    Author
    Oct 13, 2023· 1 reaction

    # Promptvision README

    ## Installation

    If you do not have Miniconda installed, please install it following these steps:

    1. Visit the Miniconda website: [Miniconda](https://docs.conda.io/en/latest/miniconda.html)

    2. Download the appropriate Miniconda3 installer for your system (e.g., Windows, macOS, Linux).

    3. Install Miniconda by following the installation instructions on the website.

    4. To verify the installation, open a new terminal and run:

    ```

    conda --version

    ```

    Ensure it works correctly before proceeding with the Promptvision setup.

    ## Setting up Promptvision

    Follow these steps to set up and run Promptvision:

    1. Clone the Promptvision repository:

    ```

    git clone https://github.com/Automaticism/Promptvision.git

    ```

    2. Navigate to the Promptvision directory:

    ```

    cd Promptvision

    ```

    3. Create a Conda environment named "promptvision":

    ```

    conda create -n promptvision

    ```

    4. Activate the "promptvision" environment:

    ```

    conda activate promptvision

    ```

    5. Install required Python packages using pip:

    ```

    pip install -r requirements.txt

    ```

    6. Run the Promptvision app with Streamlit:

    ```

    streamlit run Promptvision.py

    ```

    7. Optional: If using "Calculate ImageReward score," it will download the score. Console message example:

    ```

    2023-07-22 00:56:36.538 Created a temporary directory...

    Downloading ImageReward.pt: 1%|▌ | 21.0M/1.79G [00:02<02:49, 10.4MB/s]

    ```

    Enjoy using Promptvision!

    OtakuFraOct 16, 2023

    @Automaticism Thank you very much, if i may ask, how creating a user.bat ?

    Talk2GiuseppeNov 23, 2023
    CivitAI

    Just finished installing and encountered the "AttributeError: st.session_state has no attribute "df" error. I followed the link and quickly became overwhelmed with the... ummm... explanation? fix? For the average user, it doesn't really offer a solution on how to overcome the problem. Any suggestions? This project looks very promising and it would be great to have an opportunity to get it working.

    Running on Linux Mint 21.2, Streamlit v1.28.2

    Automaticism
    Author
    Nov 24, 2023

    Did you get it from github?

    Try getting the latest version(s) from git: https://github.com/Automaticism/Promptvision.git

    Just pushed a large update (first in months).

    Tested on a directory with almost 15000 images and lots of subfolders.

    Other
    Other

    Details

    Downloads
    611
    Platform
    CivitAI
    Platform Status
    Available
    Created
    7/22/2023
    Updated
    8/11/2026
    Deleted
    -

    Files

    promptvisionViewAllYour_v10.zip

    Mirrors