AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

sd set in ENV but error returned

Open blackshroud opened this issue 2 years ago • 9 comments

⚠️ Search for existing issues first ⚠️

  • [X] I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

Linux

GPT-3 or GPT-4?

GPT-3.5

Steps to reproduce 🕹

setting "sd" and inputting huggingface API doesn't allow agent to generate image using sd

Current behavior 😯

when generate image is called, system returns "SYSTEM: Command generate_image returned: No Image Provider Set"

Expected behavior 🤔

to generate an image

Your prompt 📝

Generate an image of three people, two women and a man

Your Logs 📒

EXT ACTION: COMMAND = generate_image ARGUMENTS = {'prompt': 'Generate an image of three people, two women and a man'} Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit program, or enter feedback for ... Input:y -=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-= SYSTEM: Command generate_image returned: No Image Provider Set THOUGHTS: It seems that the 'generate_image' command is not working.

blackshroud avatar Apr 20 '23 01:04 blackshroud

Hi @blackshroud did you set IMAGE_PROVIDER in your .env?

Qoyyuum avatar Apr 20 '23 08:04 Qoyyuum

Hi @blackshroud did you set IMAGE_PROVIDER in your .env?

Yup, set it as per the readme

blackshroud avatar Apr 20 '23 08:04 blackshroud

same issue here

GP-80 avatar Apr 20 '23 20:04 GP-80

Do you have an api key configured for HF?

ntindle avatar Apr 21 '23 03:04 ntindle

Do you have an api key configured for HF?

Yes, I have configured a User Access Token (Write) for HF and set it in HUGGINGFACE_API_TOKEN in .env also set IMAGE_PROVIDER=sd

GP-80 avatar Apr 21 '23 05:04 GP-80

same issue , already set
IMAGE_PROVIDER=sd HUGGINGFACE_IMAGE_MODEL=CompVis/stable-diffusion-v1-4 HUGGINGFACE_API_TOKEN=hf_*** # my hugging face access tokens (Write) SD_WEBUI_URL=http://127.0.0.1:7860

need to set SD_WEBUI_AUTH? or something wrong else?

yhfgyyf avatar Apr 21 '23 06:04 yhfgyyf

I have the issue as well says image provider not set. Tried with and without quotes on the api. Set IMAGE_PROVIDER=sd on Mac

joedank avatar Apr 21 '23 20:04 joedank

It's not only a direct command. It can get off the track and get stuck with trying to generate an image Also IMAGE_PROVIDER is not set

ak491 avatar Apr 22 '23 01:04 ak491

I have set: IMAGE_PROVIDER=HUGGINGFACE IMAGE_SIZE=512 HUGGINGFACE_API_TOKEN=(my token read)

I have tried Dalle too...it doesn't work....how can I get image generation to work?

ottoinator82 avatar Apr 22 '23 13:04 ottoinator82

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] avatar Sep 06 '23 21:09 github-actions[bot]

This issue was closed automatically because it has been stale for 10 days with no activity.

github-actions[bot] avatar Sep 17 '23 01:09 github-actions[bot]