kyegomez / PALI

Democratization of "PaLI: A Jointly-Scaled Multilingual Language-Image Model"
https://discord.gg/GYbXvDGevY
MIT License
86 stars 8 forks source link

Where is ul2? #8

Open Jalilnkh opened 8 months ago

Jalilnkh commented 8 months ago

Hello,

I tried to install your package but unfortunate I got the following error.

`import torch from pali import Pali

model = Pali()

img = torch.randn(1, 3, 256, 256) # Image tensor prompt = torch.randint(0, 256, (1, 1024)) # Text integer tensor output_text = torch.randint(0, 256, (1, 1024)) # Target Text integer tensor

out = model.forward(img, prompt, output_text, mask=None)

print(out)`

Error:

result = self.ul2(prompt, output, mask=mask, src_prepend_embeds=img_embeds)
AttributeError: 'Pali' object has no attribute 'ul2'

Upvote & Fund

Fund with Polar

kyegomez commented 8 months ago

@Jalilnkh it's fixed now try it again

Jalilnkh commented 8 months ago

Thank you @kyegomez please update package as well.