Closed FlotingDream closed 4 months ago
Hi, thanks for your interest. Our work is mainly built on BasicSR. Unfortunately, it seems that BasicSR doesn't support fp16 at the moment (https://github.com/XPixelGroup/BasicSR/issues/477#issuecomment-934294844).
Hi, thanks for your interest. Our work is mainly built on BasicSR. Unfortunately, it seems that BasicSR doesn't support fp16 at the moment (XPixelGroup/BasicSR#477 (comment)).
I mean for HiT-srf (I only test this), use the pretrain model inference in fp16 will get black image. seems maybe some improve in the scc class select position bias part? thx
I tried running fp16 inference and observed value overflow issues (inf or nan, which causes the black output results) when directly using the models pre-trained with fp32 precision. Since re-training with fp16 is not feasible with BasicSR, some possible solutions might be:
torch.cuda.amp
to make the models more compatible with fp16 inference.I am not an expert on this topic, but hope this helps
Thanks for the quick reply, it was very helpful, appreciated!
great work! any chance to support fp16 inference? thx!