affnet
affnet copied to clipboard
RuntimeError: [enforce fail at CPUAllocator.cpp:47]
Hello, I tried to run affnet, there was an error. RuntimeError: [enforce fail at CPUAllocator.cpp:47] ((ptrdiff_t)nbytes) >= 0. alloc_cpu() seems to have been called with negative number: 18446744072009756672 I started to think it was a memory problem, but my computer's memory is 64G. I choose two data sets to run successfully, but more than three show this problem. can you tell me the reason?thank you very much!
Hi,
What is the image size you are working on? Could you post the problematic image here?
thank you for your reply!
The dataset I used is
6 dataset
(liberty.pt,liberty_harris.pt,notredame.pt,notredame_harris.pt,yosemite.pt,yosemite_harris.pt)
when ./run_me.sh
An error occurred RuntimeError: [enforce fail at CPUAllocator.cpp:47] ((ptrdiff_t)nbytes) >= 0. alloc_cpu() seems to have been called with negative number: 18446744072009756672
when I use tow dataset
(liberty.pt,notredame.pt)
Run successfully
I want to know why this problem occurs and how to solve it,Can you give me some advice?Thank you very much!
Hi,
I think I found the problematic dataset, It is yosemite.pt.
when I use 5 dataset (liberty.pt,liberty_harris.pt,notredame.pt,notredame_harris.pt,yosemite_harris.pt) Run successfully
But I did not find the cause of the problem.
Might be it has some problems during generation. Try to delete the file and generate it again.