astriaai / headshots-starter

https://headshots-starter.vercel.app
MIT License
3.56k stars 575 forks source link

Constantly training #76

Closed markbrewster closed 3 months ago

markbrewster commented 9 months ago

I have an instance with Vercel/Supabase and when I add pictures and return to the overview I just get this: image It's been like this for 2 days! Haven't got it to work properly yet. I initially added 8 photos, then reduced it to the minimum of 4 to try again.

Any ideas? As I'm not sure where to even begin troubleshooting

Marfuen commented 9 months ago

@markbrewster Make sure that your webhook is set up properly so that the LEAP api can hit your webhook endpoint and mark is as completed

rossman22590 commented 9 months ago

where do you set up webhook i have same issue

rossman22590 commented 9 months ago

only have this env: LEAP_WEBHOOK_SECRET

rossman22590 commented 9 months ago

do i need any others?

rossman22590 commented 8 months ago

any update?

Marfuen commented 8 months ago

Hey sorry for the delay, we've been pretty busy. In the latest version of the headshots template, the url in the /train-webhook file, is const leapImageWebhookUrl =https://${process.env.VERCEL_URL}/leap/image-webhook``. Also note that to test locally you have to use something like ngrok to test the webhook, and replace the process.env.VERCEL_URL with that url.

rossman22590 commented 8 months ago

im using vercel, added VERCEL_URL and still no, it finishes and trians for days

kumardeepam commented 8 months ago

Hey sorry for the delay, we've been pretty busy. In the latest version of the headshots template, the url in the /train-webhook file, is const leapImageWebhookUrl =https://${process.env.VERCEL_URL}/leap/image-webhook``. Also note that to test locally you have to use something like ngrok to test the webhook, and replace the process.env.VERCEL_URL with that url.

im using vercel, added VERCEL_URL and still no, it finishes and trians for days

Have you been able to make it work?

kumardeepam commented 8 months ago

Hey sorry for the delay, we've been pretty busy. In the latest version of the headshots template, the url in the /train-webhook file, is const leapImageWebhookUrl =https://${process.env.VERCEL_URL}/leap/image-webhook``. Also note that to test locally you have to use something like ngrok to test the webhook, and replace the process.env.VERCEL_URL with that url.

Treid everything possible, still can't make it work :-| Please give it a look at https://picmaker.app/

rossman22590 commented 8 months ago

same here man

startupenko commented 7 months ago

You have to pay for astria.ai. Only then will your training work well.

chrisesmann commented 7 months ago

Same problem here. Although the exact error in the Leap AI dashboard is: Webhook call failed: {"cause":{"name":"RequestContentLengthMismatchError","code":"UND_ERR_REQ_CONTENT_LENGTH_MISMATCH","message":"Request body length does not match content-length header"}}

FIX: change the const webhookUrl = https://${process.env.VERCEL_URL}/leap/train-webhook; to your actual domain here. For some reason, process.env.VERCEL_URL was not working for me here. Had to manually add the domain in the code for it to work.