affnet icon indicating copy to clipboard operation
affnet copied to clipboard

RuntimeError: [enforce fail at CPUAllocator.cpp:47]

Open zhangch-ss opened this issue 4 years ago • 4 comments

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!

zhangch-ss avatar May 19 '20 02:05 zhangch-ss

Hi,

What is the image size you are working on? Could you post the problematic image here?

ducha-aiki avatar May 22 '20 13:05 ducha-aiki

thank you for your reply! The dataset I used is image 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 image (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!

zhangch-ss avatar May 24 '20 09:05 zhangch-ss

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.

zhangch-ss avatar May 24 '20 09:05 zhangch-ss

Might be it has some problems during generation. Try to delete the file and generate it again.

ducha-aiki avatar May 26 '20 14:05 ducha-aiki