AaronJackson / vrn-docker

:whale: Docker files for Large Pose 3D Face Reconstruction from a Single Image via Direct Volumetric CNN Regression
377 stars 182 forks source link

M1 macOS BigSur is supported? #18

Open alex-khramov opened 2 years ago

alex-khramov commented 2 years ago

After install image

sudo docker pull asjackson/vrn:latest

I run in terminal

MBP-Aleksej:vrn-docker root# docker run --platform linux/amd64 -v $PWD/data:/data:Z asjackson/vrn /runner/run.sh /data/turing.jpg

Then I see it

turing.jpg
turing.jpg.obj
Please wait. Your image is being processed.
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/runner/run.sh: line 27:    43 Segmentation fault      th main.lua -model 2D-FAN-300W.t7 -input $TMPDIR/$INPUT -detectFaces true -mode generate -output $TMPDIR/$INPUT.txt -device cpu -outputFormat txt
The face detector failed to find your face.

My machine: M1 macOS BigSur

sammcj commented 1 year ago

Can confirm I get the same running it on ARM.

AaronJackson commented 1 year ago

Does the local file data/turing.jpg exist? the local folder data is being mapped to /data inside the container

I have an M1 mac for work now so I might take a look at this at some point

AaronJackson commented 1 year ago

Tried rebuilding the container under M1 mac with --platform linux/amd64 but no luck. I suspect ancient lua torch has some issues with emulated x86. Maybe it's lacking some intel math features.