Closed XTMeow closed 1 year ago
Please refer to section IV of the manul.pdf.
I ran the code but it seems my gpu (2060) doesnt have enough vram. Thank you for your reply.
Shan't be... Single image tests should only take 1.8Gib of vram or a little bit more than that...
I wonder why that error appeared on my machine. But I added "with torch.no_grad()" into the "pretest" function in file "neko_abstract_jtr.py" and my error disappeared. My result: I dont know if my modification affected anything.
Maybe you have a huge character set? (Just realized that you are handling CJK) Adding "with torch.no_grad()" is sure a valid fix to the vram issue, and it should bring no adversary affects.
I will merge this fix now, and huge thx for the feedback.
Thank you for your hard work! My problem is I dont know how to run inference on single image. I would be very appreciate if you can show me how to do it.