You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
withtorch.no_grad()
vit.eval()
pali.eval()
img_embeds=vit(
img,
return_embeddings=True
)
# how to do this?# XTransformer.generate() does not take src_prepend_embeds that can be fed to encoderoutput_text=pali.generate(
img_embeds,
prompt,
mask=prompt_mask,
)
Idea?
img_embeds=self.vit(img=img, return_embeddings=True)
# from XTransformer.forward()enc=pali.encoder(prompt, mask=prompt_mask, preprend_embeds=img_embeds, return_embeddings=True)
# from XTransformer.generate()output_text=pali.decoder.generate(seq_out_start, seq_len, context=enc, context_mask=prompt_mask)
The text was updated successfully, but these errors were encountered:
How would one generate an action (output text) using PaLI?
PaLI from
readme.md
Desired behaviour
Idea?
The text was updated successfully, but these errors were encountered: