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
When running the emoji generation script with the Emojich model, the process gets stuck at 0% and does not progress. The model initializes correctly but doesn’t generate any images.
Environment :
OS: Windows
Python Version: [v3.10.10]
pip Version: 24.2
rudalle Version: 1.1.3
torch Version: 2.4.0
tokenizers Version : 0.10.3
My script :
fromrudalle.pipelinesimportgenerate_images, showfromrudalleimportget_rudalle_model, get_tokenizer, get_vaefromrudalle.utilsimportseed_everythingimporttorchdevice='cuda'iftorch.cuda.is_available() else'cpu'fp16=torch.cuda.is_available()
try:
dalle=get_rudalle_model('Emojich', pretrained=True, fp16=fp16, device=device)
exceptRuntimeErrorase:
if'Attempting to deserialize object on a CUDA device'instr(e):
dalle=get_rudalle_model('Emojich', pretrained=True, fp16=False, device='cpu')
else:
raisetokenizer=get_tokenizer()
vae=get_vae(dwt=True).to(device)
text='Дональд Трамп из лего'# Donald Trump made of LEGOseed_everything(42)
pil_images= []
try:
fortop_k, top_p, images_numin [
(2048, 0.9, 4),
]:
images, _=generate_images(text, tokenizer, dalle, vae, top_k=top_k, images_num=images_num, top_p=top_p, bs=8)
pil_images.extend(images)
exceptExceptionase:
print(f"An error occurred: {e}")
ifpil_images:
show(pil_images, 4)
else:
print("No images to display.")
Error Messages :
Using device: cpu
...
Generating images with top_k=256, top_p=0.9, images_num=4
0%|
Feel free to adjust any details as needed!
Thanks
The text was updated successfully, but these errors were encountered:
When running the emoji generation script with the Emojich model, the process gets stuck at 0% and does not progress. The model initializes correctly but doesn’t generate any images.
Environment :
OS: Windows
Python Version: [v3.10.10]
pip Version: 24.2
rudalle Version: 1.1.3
torch Version: 2.4.0
tokenizers Version : 0.10.3
My script :
Error Messages :
Feel free to adjust any details as needed!
Thanks
The text was updated successfully, but these errors were encountered: