scepter icon indicating copy to clipboard operation
scepter copied to clipboard

About LARGEN inference on huggingface space

Open QuangHuyDN opened this issue 1 year ago • 6 comments

Dear author, thank you for realeasing the code. When I was working with the LARGEN inference on your huggingface space, there was a background error when I use the data preprocessing function. Eventhough I have followed the steps in the instruction, I keep getting the same error when I click on the data preprocess button. Do you have any idea or solution for this problem ? Thanks in advance.

image image

QuangHuyDN avatar Aug 28 '24 12:08 QuangHuyDN

I had the same problem. error The shape of the 2D attn_mask is torch.Size([77, 77]), but should be (1, 1). image

north151 avatar Oct 10 '24 02:10 north151

did you find a solution?

AbdelrhmanNile avatar Nov 29 '24 12:11 AbdelrhmanNile

@jiangzeyinzi can you please help with this?

AbdelrhmanNile avatar Nov 29 '24 12:11 AbdelrhmanNile

i think the error coming from this line, trying to access a 'background' key

https://github.com/modelscope/scepter/blob/adda36e39d2a4a032df6e49d227db408c283b64d/scepter/studio/inference/inference_ui/largen_ui.py#L292C1-L292C71

AbdelrhmanNile avatar Nov 29 '24 12:11 AbdelrhmanNile

I meet the same problem after clicking the data preprocess

Kinghao0319 avatar Dec 03 '24 07:12 Kinghao0319

maybe your question is similar with https://github.com/modelscope/scepter/issues/48#issuecomment-2399111489

jinjianzhao avatar Mar 12 '25 18:03 jinjianzhao