Stable Diffusion image location URL not using DOMAIN NAME #4447
Unanswered
aleibovici
asked this question in
Troubleshooting
Replies: 1 comment
-
I added the following instruction to the agent, and it seems to work, but I'm not sure this is a definitive solution for the issue? 'When constructing a URL, use "domain.com" as the hostname.' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have configured Stable Diffusion using Agents (experimental), and the image creation works fine. The image is placed in the correct directory; however, when presented to the user, the correct domain name is ignored.
The image below was presented to the user with 'example.com' instead of the correct domain name.
https://example.com/images/66f6376dba28a6a7dbd623a1/29cd9131-d6ef-48ab-aa1e-cf83e4ff18d8.png
{ "_id": "6710d39311a49bd6c6a55758", "file_id": "bd90af42-6dbc-434a-8dab-76056346d05f", "__v": 0, "bytes": 507089, "context": "image_generation", "createdAt": "2024-10-17T09:06:27.955Z", "filename": "bd90af42-6dbc-434a-8dab-76056346d05f.png", "filepath": "/images/66f6376dba28a6a7dbd623a1/bd90af42-6dbc-434a-8dab-76056346d05f.png", "height": 512, "object": "file", "source": "local", "type": "image/png", "updatedAt": "2024-10-17T09:06:27.955Z", "usage": 0, "user": "66f6376dba28a6a7dbd623a1", "width": 512, "prompt": "adorable baby, smiling, soft blanket, bright eyes, cheerful expression, cozy nursery, colorful toys, innocent charm, chubby cheeks", "metadata": { "negative_prompt": "adult, frown, dark colors, harsh lighting, empty room, metal toys, sadness, serious expression", "seed": 636713899, "info": "Steps: 20, Sampler: Euler, CFG scale: 7.0, Seed: 636713899, Size: 512x512, Model hash: c6bbc15e32, Model: sd-v1-5-inpainting, Conditional mask weight: 1.0, Version: v1.9.4" } }
This means that the image is available, but the user is unable to see or download it unless the hyperlink is modified with the correct domain name. We have properly configured DOMAIN_CLIENT and DOMAIN_SERVER in the .env file.
Any idea of why this is hapenning? It seems the LLM is just adding anything in front of the filepath.
Beta Was this translation helpful? Give feedback.
All reactions