-
Notifications
You must be signed in to change notification settings - Fork 160
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
"path_outputs" in config.txt is ignored #386
Comments
Okay, this is a headache inducing question. I will try to improve this. |
In config.py:
This should always return since "user_path_config.txt" doesn't exist.
Oddly, one day logs and images were written to path_outputs. |
|
The settings from config.txt still work. It still generates the file in the path_outputs directory, but then the file will be moved. You can copy the file instead of moving the file. Then both, the API and the log work without confusion. Files from the API directory can be cleared later. I want to keep the files in the log. |
path_outputs
is introduced in config.txt for storing generated images. But Fooocus-API ignores the setting, outputs images to a hard-coded folderoutput_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '../..', 'outputs', 'files'))
infile_utils.py
. I think it's important to expose the configuration ofpath_outputs
to users, especially for API running in Docker container.My workaround to solve the problem:
Developer can customize the output path by set an environment variable, e.g.
export OUTPUT_DIR=/tmp/fooocus-imgs
The text was updated successfully, but these errors were encountered: