-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
where to put images folder, localhost, etc? #1
Comments
image.jpg must be a valid jpg file in the current working directory when using this curl command, and you must have the read permission on that file (
Looks like you're referring to https://github.com/UoA-eResearch/hololens_facial_recognition/blob/master/config.cfg.example - yes, you would need to change this to the hostname of the server running your torch network. I run my docker container on ml.cer.auckland.ac.nz but this server is not accessible outside of my network. Did generate_pickle.py work ok for you? You can use Thanks for being the first (that I know of) to test this! |
Also, your images folder and your data.json can be anywhere on your machine, it gets mounted to /root/data in the container with the argument |
Also I took a look at https://github.com/1997mjk/OpenFaceHoloLens - generate_pickle.py wasn't handling multiple samples per person, and wouldn't have supported your JSON structure, but my last few commits make it so that it does. |
It may be a good idea to upload a sample data.json and image folder structure like 1997mjk did for others to understand immediately how it should look like. |
Hmm. So I made a folder called "images" and filled it with named folders like "bob" and the relevant peoples images. I replaced powershell curl with the real one (windows here) via chocolately and tried
I also double checked my startup via
8b3ae7e4bf1ffd424ed0c610b223052e1c808e8b1b22ec4736d3d66fc3405a19 Am I something really obvious? Many thanks |
The pwd command does not work in windows |
maybe https://github.com/docker/for-win/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20mount might have a solution for mounts not working on windows |
well - more specifically moby/moby#12751 PS D:> docker run -v "${pwd}:/test" alpine ls /test if there is a simple solution I am yet to find it. MSYS_NO_PATHCONV=1 and the other env stuff looked promising... however I did cobble a working container together and thanks to the slap happy perms on windows -> unix I can just cif files directly into the VM -> containers data directly from in the win box. so no harm done. it's actually pretty useful now like that. thanks, but I would really enjoy a more solid solution obviously. |
installing and configuring a server side samba server is a windows friendly option in the absence of access to native files shares. Thanks for the great work on this. |
Hey, I used docker with Digital Command, and put the images folder (and data.json) in the server there.
About
time curl localhost:8000 --data-binary @image.jpg -vv
, is the image.jpg supposed to be one of the images of one of the person? Right now, if I try to do that, it just says "Couldn't read data from "nameOfImage.jpg", this makes an empty POST"Also, do I need to change the OpenFaceUrl from "http://ml.cer.auckland.ac.nz:8000" to something else as well?
Thanks in advance
The text was updated successfully, but these errors were encountered: