-
Notifications
You must be signed in to change notification settings - Fork 59
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
Image Reward Fails to Load #21
Comments
Thank you so much for the issue! Let's resolve it together 😀 This error seems a bit unusual because the line of code Could you please provide the content of your |
Here it is. I copied it from the file I downloaded from here. `
Packages
Host and manage packages
Security
Find and fix vulnerabilities
Codespaces
Instant dev environments
Copilot
Write better code with AI
Code review
Manage code changes
Issues
Plan and track work
Discussions
Collaborate outside of code
For
placeholder="Search"
data-unscoped-placeholder="Search GitHub"
data-scoped-placeholder="Search"
autocapitalize="off"
role="combobox"
aria-haspopup="listbox"
aria-expanded="false"
aria-autocomplete="list"
aria-controls="jump-to-results"
aria-label="Search"
data-jump-to-suggestions-path="/_graphql/GetSuggestedNavigationDestinations"
spellcheck="false"
autocomplete="off"
>
<input type="hidden" data-csrf="true" class="js-data-jump-to-suggestions-path-csrf" value="bf1c3EHjwASfT6VevGq3rARgyJnCBf0dkAnnCA7TAV84IuhNrKk/ut+cZDhBFfK/MleQAEVL/eVlZWcAaP/jRQ==" />
<input type="hidden" class="js-site-search-type-field" name="type" >
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="20" aria-hidden="true" class="mr-1 header-search-key-slash"><path fill="none" stroke="#979A9C" opacity=".4" d="M3.5.5h12c1.7 0 3 1.3 3 3v13c0 1.7-1.3 3-3 3h-12c-1.7 0-3-1.3-3-3v-13c0-1.7 1.3-3 3-3z"></path><path fill="#979A9C" d="M11.8 6L8 15.1h-.9L10.8 6h1z"></path></svg>
<div class="Box position-absolute overflow-hidden d-none jump-to-suggestions js-jump-to-suggestions-container">
main
Switch branches/tags
Name already in use
ImageReward/sdwebui/image_reward.py
/
Go to file
Jump to
Code definitions
Code navigation index up-to-date
tongyx361
1
Edit this file
E
View blame
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Go
Footer
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
` |
It looks like you have downloaded the HTML of a web page instead of our script code file. This is actually the wrong way to do it. The contents of ImageReward/sdwebui/image_reward.py Lines 1 to 121 in ed5c202
instead of the HTML code starting with <meta name="optimizely-datafile" content="{"groups": [], ...
|
When I right click that script code file, and "save link as..." I get a file that starts off with
|
I edited with .py with the information listed. I still get get an error that ImageReward is not installed. |
The link we provided for the script file points to its GitHub page, not the raw content. So "save as link" will save the HTML code of the GitHub page, not the actual Python code of the script. If the image_reward.py code you have is correct Python code yet still triggered an error, that would be strange. Could you provide the full error message? |
The key error message here is
pip may have failed to write to the executable due to lack of permissions, etc., causing the "image-reward" pip package to fail to be installed. "tqdm" is one of the dependencies of "image-reward". You are on the right track: you could try installing the "tqdm" package manually. You can refer to this issue to try to install "tqdm" manually in venv, and install "image-reward" again. |
Glad you got the error resolved! If you encounter any related errors/new bugs in the future, please feel free to reply under this issue/open a new one, so that we can work together to make this project better!👍 Regarding the issue with running other scripts at the same time, I'm sorry, but the SD Web UI hasn't supported running multiple scripts at the same time so far. Also, from your reply and image, it looks like "the StylePile script" is integrated with ImageReward, and I'm glad that other developers are willing to use our work! But I failed to retrieve ImageReward in the StylePile code repository. could you please provide a full UI screenshot of your last image? We'd like to get more insight into the application of our work. |
Ah, yes. I am using the "Catppuccin Theme". https://github.com/catppuccin/stable-diffusion-webui I wanted a dark mode. I couldn't see the tool tips otherwise. Also the Image Browser extension. https://github.com/AlUlkesh/stable-diffusion-webui-images-browser I forget what isn't default. Are you saying that you didn't place that button there? It was there before I was able to get the script working. |
Thank you so much! We'll delve into them soon. Please stay tuned. |
ImageReward does not work. I am using stable-diffusion-webui-directml. I followed instructions from "Quick Start" as well as "Integration into Stable Diffusion Web UI". Attached screenshots to show that ImageReward is installed, and script is in then place instructions say.
![imagerewardscriptfail](https://private-user-images.githubusercontent.com/81931767/241975768-d903c46f-74ee-446a-b122-68e7c39e4691.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxOTUwNjQsIm5iZiI6MTcyNTE5NDc2NCwicGF0aCI6Ii84MTkzMTc2Ny8yNDE5NzU3NjgtZDkwM2M0NmYtNzRlZS00NDZhLWIxMjItNjhlN2MzOWU0NjkxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAxVDEyNDYwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyNjZjNzQxMjU1NTk2YWZlY2JmZjM2NWMzN2FkZmRhZmVhOWUxZmI2OGMyODk5NzljY2FjN2NmMTZmY2FlOGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.gib8eVR3DtHP0oOBS-teYu2U1Jln1zGPrEi70fqWEgo)
![imagerewardscriptfail2](https://private-user-images.githubusercontent.com/81931767/241975780-740dc749-d9ce-4778-8abc-0500f864103d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxOTUwNjQsIm5iZiI6MTcyNTE5NDc2NCwicGF0aCI6Ii84MTkzMTc2Ny8yNDE5NzU3ODAtNzQwZGM3NDktZDljZS00Nzc4LThhYmMtMDUwMGY4NjQxMDNkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAxVDEyNDYwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFjNDQ3N2MzMDI4Zjc5YmNhNGUwY2MyMGFlNjZiMTEzNGEwMDU2ZDg3ZTY0Y2UxODFiZWI2ZjAwMTgyNTg2NjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.3QMJfpIcKanlKawTStflDTL5oftVZrMq2FjxfhB2tMI)
![imagerewardscriptfail3](https://private-user-images.githubusercontent.com/81931767/241975797-aa780291-f6f2-42e7-999f-5405e3729101.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxOTUwNjQsIm5iZiI6MTcyNTE5NDc2NCwicGF0aCI6Ii84MTkzMTc2Ny8yNDE5NzU3OTctYWE3ODAyOTEtZjZmMi00MmU3LTk5OWYtNTQwNWUzNzI5MTAxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAxVDEyNDYwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRjOTc0N2MzOGM5Yzk0MDllNjU0MjYwMzY2MWZhZjkwMjVmM2Y3ODU0OTRjYmRjY2M4ZDc5ZWYwOTIwNDQ3YjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.FEfpKNkv6qXbaNEglxsOBB5mypeN-jqmV2Db7rSjkoI)
The text was updated successfully, but these errors were encountered: