Skip to content
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

【bug】连续对一张图片进行 variation 操作,第二次获取结果会与第一次的结果相同 #7

Open
allentofight opened this issue Jun 4, 2023 · 0 comments

Comments

@allentofight
Copy link

allentofight commented Jun 4, 2023

重现如下

1. 首先请求 promt 调用 imagine
curl -X POST http://mywebsite.com/api/v1/trigger/submit \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "action=IMAGINE&prompt=I'm%20a%20basketball%20player"

返回结果 {"code":1,"description":"成功","result":"b9b52d08-19fe-4b8b-a608-3ffdaa079d83"}

2. 对 result 进行查询
{"_id":"b9b52d08-19fe-4b8b-a608-3ffdaa079d83","index":"","action":"IMAGINE","prompt":"I'm a basketball player","promptEn":"I'm a basketball player","taskId":"1114932607285739642","uri":"https://cdn.discordapp.com/attachments/1112940597846749228/1114932607596114012/qiuweiai_Im_a_basketball_player_7061e2e2-005c-4d28-9b54-6d8d55fe357f.png","hash":"7061e2e2-005c-4d28-9b54-6d8d55fe357f","content":"I'm a basketball player --seed 7563 --v 5","progress":"done","description":"/imagine I'm a basketball player","submitTime":1685890985401,"finishTime":1685891050723,"creationTime":1685890984883,"state":"","notifyHook":"","imageUrl":"https://cdn.discordapp.com/attachments/1112940597846749228/1114932607596114012/qiuweiai_Im_a_basketball_player_7061e2e2-005c-4d28-9b54-6d8d55fe357f.png","status":"SUCCESS"}


3. 对以上图片第一张进行 variation

curl -X POST http://mywebsite.com/api/v1/trigger/submit \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "action=VARIATION&taskId=b9b52d08-19fe-4b8b-a608-3ffdaa079d83&index=1"

返回结果 {"code":1,"description":"成功","result":"4b880546-dd90-4b65-9a66-49ffdd825a1e"},查询后返回
{"_id":"4b880546-dd90-4b65-9a66-49ffdd825a1e","index":"1","action":"VARIATION","taskId":"1114934375323287572","uri":"https://cdn.discordapp.com/attachments/1112940597846749228/1114934375713362001/qiuweiai_Im_a_basketball_player_c2054672-a8f4-45c3-a137-501dc6d63c32.png","hash":"c2054672-a8f4-45c3-a137-501dc6d63c32","content":"I'm a basketball player --seed 7563 --v 5","progress":"done","description":"/imagine undefined","submitTime":1685891431750,"finishTime":1685891471130,"creationTime":1685891430160,"state":"","notifyHook":"","imageUrl":"https://cdn.discordapp.com/attachments/1112940597846749228/1114934375713362001/qiuweiai_Im_a_basketball_player_c2054672-a8f4-45c3-a137-501dc6d63c32.png","status":"SUCCESS"}
这一次结果正常


4. 对步骤 2 的图片第二张进行 variation
curl -X POST http://mywebsite.com/api/v1/trigger/submit \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "action=VARIATION&taskId=b9b52d08-19fe-4b8b-a608-3ffdaa079d83&index=2"
最终的返回结果和步骤3一样!
@allentofight allentofight changed the title 【bug】连续对一张图片进行 variation 操作,第二次之后获取结果会与第一次的结果相同 【bug】连续对一张图片进行 variation 操作,第二次获取结果会与第一次的结果相同 Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant