williamyang1991 / VToonify

[SIGGRAPH Asia 2022] VToonify: Controllable High-Resolution Portrait Video Style Transfer
Other
3.53k stars 442 forks source link

Can't allocate memory error #60

Open Kaunain26 opened 1 year ago

Kaunain26 commented 1 year ago

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 commented 1 year ago

@williamyang1991

williamyang1991 commented 1 year ago

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

Kaunain26 commented 1 year ago

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

williamyang1991 commented 1 year ago

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

Kaunain26 commented 1 year ago

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

Okay no problem, thanks for replying on this issue.

Kaunain26 commented 1 year ago

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?

williamyang1991 commented 1 year ago

I think 16 GB is enough for --batch_size 1

Kaunain26 commented 1 year ago

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

williamyang1991 commented 1 year ago

--padding 128 128 128 128

Kaunain26 commented 1 year ago

sure i'll try , thanks