ai-video-super-resolution icon indicating copy to clipboard operation
ai-video-super-resolution copied to clipboard

Shows internal server error

Open Neel7317 opened this issue 3 years ago • 11 comments

after launch solution in AWS global region. and after uploaded video in s3 bucket with file name 1.mp4 try to run following code and its throwing internal server error..

import requests import json

url='https://65ab94bo5e.execute-api.us-west-2.amazonaws.com/prod/'

payload = json.dumps({ "key": "1.mp4" })

headers = { 'Content-Type': 'application/json' }

response = requests.request("POST", url, headers=headers, data=payload) print(response.text)

Neel7317 avatar Nov 16 '21 09:11 Neel7317

Can you send me the logs of AWS lambda?

xiaotinghe avatar Nov 16 '21 11:11 xiaotinghe

This is what i found in AWS logs..

[ERROR] TypeError: 'NoneType' object is not subscriptable Traceback (most recent call last):   File "/var/task/split.py", line 45, in handler     key = body['key']

Neel7317 avatar Nov 17 '21 04:11 Neel7317

screenshot

Neel7317 avatar Nov 17 '21 05:11 Neel7317

I failed using the sample events, but changing the event to look like this: { "body": { "key": "MyVideo.mp4", "scale": "4", "task": "inference" } } at least it start processing

jonashogstrom avatar Feb 08 '22 09:02 jonashogstrom

Is it successfully executed? i mean video convert to high resolution or not??

Neel7317 avatar Feb 09 '22 09:02 Neel7317

I have successfully converted a video in 360x240 with x4, and a full HD video to 4k, the results in level of detail is actually impressive. Motion blur and weak colors stay the same. Processing time was 25 minutes for 12 seconds of full HD video so I would say that cost wise it will be hard to justify. Collecting better quality video from the beginning should probably be your first option.

jonashogstrom avatar Feb 09 '22 18:02 jonashogstrom

i am receiving rollback errors on the cloud formation// how is everyone else getting this template to work?

thePegasusai avatar May 24 '22 16:05 thePegasusai

I'm experiencing the same issue. Tried modifying as suggested above with no luck. Please advise

ajeema avatar Dec 01 '22 15:12 ajeema

the error is: [ERROR] TypeError: 'NoneType' object is not subscriptable Traceback (most recent call last): File "/var/task/split.py", line 42, in handler key = body['key']

ajeema avatar Dec 01 '22 15:12 ajeema

@jonashogstrom Can you tell us how to make this template work? Did you deploy it using AWS CloudFormation or Follow the steps at Readme.md? I also got an internal server error, we need to auth before sending any requests.

Windsooon avatar Mar 30 '23 06:03 Windsooon

@Windsooon As far as I remember, the changes I mentioned in my post above from feb 8, 2022 was sufficient for me. I have since removed all traces of this experiment from my AWS account, so I can't check any details I'm afraid. To be honest, I don't remember how I set it up.

jonashogstrom avatar Mar 30 '23 06:03 jonashogstrom