Open Jalilnkh opened 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'
@Jalilnkh it's fixed now try it again
Thank you @kyegomez please update package as well.
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:
Upvote & Fund