facebookresearch / multiface

Hosts the Multiface dataset, which is a multi-view dataset of multiple identities performing a sequence of facial expressions.
Other
718 stars 50 forks source link

RuntimeError: width and height must be divisible by 8 #26

Closed YunjieYu closed 1 year ago

YunjieYu commented 1 year ago

Greate work! I'm having a problem on running the training script.

For some reason, I really can not use dr.RasterizeGLContext() , so choose to use dr.RasterizeCudaContext(), i.e.:

self.glctx = dr.RasterizeCudaContext()

in the utils.py, line 18.

However, an error occurs: RuntimeError: width and height must be divisible by 8

I guess the reason is that width of 1334 is not divisible by 8. Could you tell me how to fix it?

Thanks in advance!

vexilligera commented 1 year ago

Hi,

I think one alternative would be to render the image to the closest resolution and perform cropping/indexing to obtain the desired region in this case.