LizhenWangT / FaceVerse

FaceVerse: a Fine-grained and Detail-controllable 3D Face Morphable Model from a Hybrid Dataset (CVPR2022)
BSD 2-Clause "Simplified" License
460 stars 57 forks source link

Error when running preprocessing for style avatar #36

Open loic-combis opened 6 months ago

loic-combis commented 6 months ago

Hello,

I'm trying to run tracking_offline_cuda.py on macos and I get the following error:

File "/Users/xxxx/workspace/FaceVerse/faceversev3_jittor/fit_imgs_offline_cuda.py", line 113, in run
    rendered_img_c = np.clip(self.pred_dict['rendered_img'].transpose((0, 2, 3, 1)).numpy(), 0, 255).astype(np.uint8)
RuntimeError: Wrong inputs arguments, Please refer to examples(help(jt.numpy)).

Types of your inputs are:
 self   = Var,
 args   = (),

The function declarations are:
 ArrayArgs fetch_sync()

Failed reason:[f 0222 09:14:44.203245 00 op.cc:182] Check failed: flags.get(NodeFlags::_cpu)  Something wrong... Could you please report this issue?
 Op code doesn't have cpu version

Seems like the repo does not support CPU right? Is there a way to run it directly on macos (M1 or M3) ?

Thanks for your help!