TD-FaceCHOP icon indicating copy to clipboard operation
TD-FaceCHOP copied to clipboard

Can't load landmarks file from path with special characters

Open tohox opened this issue 5 years ago • 5 comments

Every time my TOE loads the FaceCHOP chop generates this error:

Error: Error while loading face landmarks file. (/project1/face_chop/Facechop1) Message: Start compiling DAT: /project1/face_chop/delayed_trigger/timer1_callbacks (/project1/face_chop/delayed_trigger/timer1_callbacks) Message: End compiling DAT: /project1/face_chop/delayed_trigger/timer1_callbacks (/project1/face_chop/delayed_trigger/timer1_callbacks) Message: Start compiling DAT: /local/maps/replicator1_callbacks (/local/maps/replicator1_callbacks) Message: End compiling DAT: /local/maps/replicator1_callbacks (/local/maps/replicator1_callbacks) Error: Initializing... (/project1/face_chop/videodevin1)

The original FaceCHOP.toe worked fine from its original directory. I started by modifying it in place which also worked fine but when I renamed it and moved it to a new directory it started generating this error.

I copied the Plugins directory over to the new directory with both TD-FaceCHOP.dll and opencv_world411.dll in it. I also placed a copy of shape_predictor_68_face_landmarks.dat next to my new TOE and selected the new file location in the FaceCHOP's parameters and saved and restarted the TOE with the same result.

tohox avatar Dec 15 '20 18:12 tohox

It sounds like you've tested it correctly. I've tested your method on 2020.41040 but don't have an issue. What's your version? Could you try deleting the CHOP and re-creating it with the OP create dialog (the tab button interface or double-clicking the network editor)?

DBraun avatar Dec 15 '20 21:12 DBraun

I'm using 2020.27390 at the moment. I tried deleting and recreating the FaceCHOP chop in my TOE but got the same result.

The project was nested pretty deep and a few of the subfolders had accented characters in their names. I copied the project directory closer to the root and removed all accented characters and this time the landmarks file load without any issues. I believe the problem could be related to the path length being too long or to the presence of accented characters or some kind of Unicode weirdness.

tohox avatar Dec 15 '20 21:12 tohox

I can confirm that using accented characters in the directory path prevents the landmarks file from loading.

tohox avatar Dec 15 '20 21:12 tohox

Ok thanks for finding that. I'll re-open the issue because this seems solvable, although not high priority.

DBraun avatar Dec 15 '20 22:12 DBraun

Of course, sorry for being so hasty and thanks for the follow-up!

tohox avatar Dec 15 '20 23:12 tohox