Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

[Example] code refactor for image classification #434

Merged
merged 6 commits into from
Jan 17, 2019
Merged

[Example] code refactor for image classification #434

merged 6 commits into from
Jan 17, 2019

Conversation

ibelem
Copy link
Member

@ibelem ibelem commented Jan 9, 2019

Fix #422

Please visit image_classification/README.md for more details.

@ibelem
Copy link
Member Author

ibelem commented Jan 9, 2019

@huningxin @Wenzhao-Xiang @pinzhenx please review.

ibelem added 3 commits January 9, 2019 15:13
Promise<void> loadModel(object model)
downloads the model and label files, then decode the bytes to a JS object rawModel internally.

Promise<DOMString> init(DOMString backend, DOMString prefer)
converts the rawModel to a WebNN model and returns 'SUCCESS'. Returns 'NOT_LOADED' if the loadModel has not been finished and do nothing.

2. Full partial refresh without page reloading when switching models
3.  Other UI changes
@ibelem
Copy link
Member Author

ibelem commented Jan 16, 2019

@huningxin @Wenzhao-Xiang @pinzhenx please review the latest version with seperated loadModel from init by @pinzhenx's. If no problem, please merge the code.

1. add model.html page
2. remove model description section by mouse events
3. disable same model reloading from ui
@Wenzhao-Xiang
Copy link
Contributor

@ibelem
Thanks for the great job! It looks good to me!

I also test the new example in Android platform with WASM (Pixel2, chrome 71), and unexpected to found all the image classification models passed(The old one can't pass ResnetV2(Onnx) #441 )! It's really a good improvement!
Seems Javascript memory will effects WASM memory allocating?
I will investigate it then.

@huningxin
Copy link
Contributor

Great job done! Thanks @ibelem @Wenzhao-Xiang @pinzhenx for the coding and review!

@huningxin huningxin merged commit fcfd06d into intel:master Jan 17, 2019
@ibelem ibelem deleted the image-classfication-code-refactor branch February 15, 2019 02:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants