vrn-docker icon indicating copy to clipboard operation
vrn-docker copied to clipboard

M1 macOS BigSur is supported?

Open alex-khramov opened this issue 3 years ago • 3 comments

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

alex-khramov avatar Mar 05 '22 19:03 alex-khramov

Can confirm I get the same running it on ARM.

sammcj avatar Jan 19 '23 06:01 sammcj

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 avatar Jan 19 '23 08:01 AaronJackson

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.

AaronJackson avatar Jan 19 '23 11:01 AaronJackson