Open esdrascosta opened 3 years ago
@esdrascosta Same results occur time to time, and we are trying to find out the reason too. Maybe you can just have a cup of coffee and simply try it again at present.
Hi @plutoyuxie, Thanks for sharing your codes. I was also working on the implementation of RIAD. Your codes are great and helped me a lot. I really appreciate that.
Hi @esdrascosta , I met this problems before. I fixed it by modifying 'x = torch.sqrt(x + sys.float_info.epsilon)' at line 27 in gms_loss.py, then I've never met the NaN loss again. I think the problem is caused by 0 value when calculating the derivative. You can try this modification. I hope it helps.
BTW, have you ever tried to train ONE reconstruction model for multiple objects? I am trying this but the reconstruction results is not as good as single object.
Thanks, @MaDongao I will try it soon. Reconstructing multiple objects is much harder. As I know, the state-of-the-art method is called PaDiM, which is not a reconstruction method.
@plutoyuxie The following library might be helpful for your implementation. https://github.com/photosynthesis-team/piq
Hi, thanks for posting these codes. I'm trying to replicate the results, but I'm getting
NaN
after 11 steps. I installed all the dependencies in the described versions, but I still have these results. Please find below the log results