zhanghang1989 / PyTorch-Multi-Style-Transfer

Neural Style and MSG-Net
http://hangzh.com/PyTorch-Style-Transfer/
MIT License
977 stars 206 forks source link

RuntimeError: [enforce fail at CPUAllocator.cpp:64] . DefaultCPUAllocator: can't allocate memory: you tried to allocate 34080768 bytes. Error code 12 (Cannot allocate memory) #35

Open skanel opened 4 years ago

skanel commented 4 years ago

WHEN RUN ON AWS EC2

RuntimeError: [enforce fail at CPUAllocator.cpp:64] . DefaultCPUAllocator: can't allocate memory: you tried to allocate 34080768 bytes. Error code 12 (Cannot allocate memory)

abubakar-ucr commented 4 years ago

I am also having the same issue.

skanel commented 4 years ago

I can solved this issue by increase the memory in aws. but be careful of AWS price charging. In order to extend the volume size. you can follow this tutorial: https://medium.com/findworka/how-to-increase-disk-size-for-an-ec2-instance-on-aws-b82181df6215

PLEASE BE CAREFUL AWS 's PRICING WHEN YOU DECIDED TO INCREASE

amurumanasa commented 3 years ago

@abubakar-ucr have you solved the cpu allocator error?