VToonify icon indicating copy to clipboard operation
VToonify copied to clipboard

Can't allocate memory error

Open Kaunain26 opened this issue 1 year ago • 10 comments

I am trying to run the code on CPU device and i am facing this error.

error

I tried with 200 , 200,200,200 and 600,600,600,600 padding but in all scenario sometimes it's working and sometimes it's not working. Its saying can't allocate memory.

But on colab it's working. Is it having any solution?

Kaunain26 avatar Apr 12 '23 12:04 Kaunain26

@williamyang1991

Kaunain26 avatar Apr 17 '23 13:04 Kaunain26

I haven't encountered this error before. I have no idea of it.

williamyang1991 avatar Apr 17 '23 13:04 williamyang1991

I have 16 GB of ram on server, so is this because of that. Sometime i am facing some time not @williamyang1991

Kaunain26 avatar Apr 17 '23 13:04 Kaunain26

You can set --batch_size to 1 to lower the memory requirement. If this error disappears, then it should be the memory issue.

williamyang1991 avatar Apr 17 '23 13:04 williamyang1991

I haven't encountered this error before. I have no idea of it.

Okay no problem, thanks for replying on this issue.

Kaunain26 avatar Apr 17 '23 13:04 Kaunain26

You can set --batch_size to 1 to lower the memory requirement. If this error disappears, then it should be the memory issue.

Should i increase the ram? what do say?

Kaunain26 avatar Apr 17 '23 13:04 Kaunain26

I think 16 GB is enough for --batch_size 1

williamyang1991 avatar Apr 17 '23 13:04 williamyang1991

@williamyang1991 Batch size is for video toon , it's not for images.

Kaunain26 avatar Apr 17 '23 13:04 Kaunain26

--padding 128 128 128 128

williamyang1991 avatar Apr 17 '23 13:04 williamyang1991

sure i'll try , thanks

Kaunain26 avatar Apr 17 '23 13:04 Kaunain26