-
Notifications
You must be signed in to change notification settings - Fork 78
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
TypeError when running the codes #68
Comments
Which node version did you use? |
I used node v8 at first and I changed to v7.0.0 but same error appears. |
Could you please post your code which can reproduce this issue? |
Then I use babel to convert the two codes into es5. |
Thank you for providing the re-produce code. Could try to run them by |
Errors occur when running by babel-node For index.js(upper one): For test.js(lower one): Update: |
Could you be able to run the demo from this repository? It uses ts-node and should work without any problem. Try run I have never tried babel, will try it when I have time. |
Thanks for your advices. Now I am able to run the codes and I have one more question. Is there any requirement for the input photo? I use some face photos as input but no face feature vector is returned. |
There's two steps: alignment and embedding. Which one did you tried, alignment or embedding? I suggest you to read the source code to get to know the reason. If you still has problem, please provide the reproduce procedure for your issue. |
Just tried embedding function with size 256x256, 128x128 and 96x96 face photos. Only the one with size 256x256 returns a feature vector. |
Actually, I believe all the input image will be resized to 160x160 before feed to the neural network. So the You can check the source code, and let me know your result. Thanks. |
I ran the demo with replacing the input, |
I tried to run the library with nodejs and error occured.
Symbol.asyncIterator = Symbol.asyncIterator || Symbol.for('Symbol.asyncIterator');
^
TypeError: Cannot assign to read only property 'asyncIterator' of function 'function Symbol() { [native code] }'
at /Users/hhhung/Desktop/face_feature/node_modules/flash-store/bundles/flash-store.umd.js:101:26
at rimrafProxy__default (/Users/hhhung/Desktop/face_feature/node_modules/flash-store/bundles/flash-store.umd.js:40:68)
at Object. (/Users/hhhung/Desktop/face_feature/node_modules/flash-store/bundles/flash-store.umd.js:43:2)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
flash-store version: 0.1.2
How could I fix the problem? Thanks
The text was updated successfully, but these errors were encountered: