-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Batch File upload/ Folder upload. Bulk Enhance #3540
base: main
Are you sure you want to change the base?
Conversation
-Immediately enhance each image generated -Added Bulk Enhance -Added 2 smaller resolutions: 512x512 and 704x704 for faster image generation -Added default enhance prompts for pre-selections 'face', 'eye', 'mouth', 'hair', 'hand', 'body' -Added more error handling
remove unused imports
modules/bulk_enhance_helpers.py
Outdated
|
||
|
||
def on_input_change(input_path, file_explorer): | ||
if os.path.isdir(input_path): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was resolved:
ChrisColeTech@9f535e8
Change to resolve GitHub Advanced Security check
-Rework stop/skip during bulk enhance to use "async_task.should_run" and -"async_task.should_skip" for more reliable stopping and skipping. -Code cleanup -Added more logging. -Removed some emoji's
modules/bulk_enhance_helpers.py
Outdated
# Sanitize the input path | ||
input_path = sanitize_path(input_path) | ||
|
||
if os.path.isdir(input_path): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was resolved:
ChrisColeTech@b5e73ff
Is |
remove unused flags code cleanup
-To resolve github CodeQL warning -more code cleanup
input_path = os.path.normpath(os.path.realpath(input_path)) | ||
|
||
if os.path.isdir(os.path.realpath(input_path)): | ||
# Return an empty list if input_path is a directory |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was resolved:
ChrisColeTech@b5e73ff
I got you..what version of python_embedded 3.10? 3.11? 3.12? |
Please download tkinter from Here and drag and drop it into your embedded_python folder. |
automatic tkinter installation
…kinter_installer to dependency_installer for reusability
|
||
return _corsify_actual_response(jsonify(cache['data'])) | ||
except Exception as e: | ||
return _corsify_actual_response(jsonify({'error': str(e)})) |
Check warning
Code scanning / CodeQL
Information exposure through an exception
I followed the exact steps but the Bulk Enhance option is not visible/available, I test the tkinter in the python embedder path and it pop up the little popup box as shown above. I followed python 3.10 version tutorials but it won't work. is there anyone to help me to fix this, please see the attached images 1-5 for better clarification. Thank you in advance you guys are doing great and it really means a lot. :) |
No problem, I really hope you enjoy 👍 These changes are not part of the official branch, so you must install them yourself. Here are instructions to do that: https://gist.github.com/ChrisColeTech/2df13aee74f7e8e515378cc861168f04 Let me know if you have questions. |
Requires tkinter for the file/folder dialog
If you are using Python embedded, you will be missing TKINTER. This verison of Fooocus will automatically download and install TKINTER for you. If that fails, please download tkinter from Here and drag and drop it into your embedded_python folder.
New Features
📸 Preview
Uploading Images
Enhancing Images
Image Resolutions
Pre-Selection Prompts