-
Notifications
You must be signed in to change notification settings - Fork 950
Conversation
The travis errors seems to be because the demos and models are pulling in the old version of the code. Not sure how to get around that? |
You'll have to update the demos I think (sorry). I think there are plans to move the demos and models out to make this easier in the future. |
This is awesome. Left a few comments (the only major comments are about not removing .scope, but replacing it with dl.tidy(), we renamed that). Regarding Travis failure, you will have to update the versions in models/*/package.json and also the model versions in deps of demos/package.json to point to the newer models. Travis will still fail btw, since we haven't yet published these models. In the current build system, there is no way around that, but I can fix that right after we merge your PR - by publishing the new versions of those models on npm - which will make Travis happy Reviewed 11 of 12 files at r1. models/knn_image_classifier/demo.html, line 22 at r1 (raw file):
is this necessarily, or is this because we are being very cautious? models/knn_image_classifier/demo.html, line 30 at r1 (raw file):
dl.fromPixels: doc here models/knn_image_classifier/knn_image_classifier.ts, line 23 at r1 (raw file):
I think you can drop models/knn_image_classifier/knn_image_classifier.ts, line 34 at r1 (raw file):
dl.scalar(300) models/knn_image_classifier/knn_image_classifier.ts, line 88 at r1 (raw file):
doc here models/knn_image_classifier/knn_image_classifier.ts, line 131 at r1 (raw file):
same here: use dl.tidy(() => ... dl.keep()); models/knn_image_classifier/knn_image_classifier.ts, line 149 at r1 (raw file):
small suggestion: you can use chaining here: models/knn_image_classifier/knn_image_classifier.ts, line 237 at r1 (raw file):
chaining: ndarray2.clone() models/knn_image_classifier/knn_image_classifier.ts, line 254 at r1 (raw file):
you can chain all the way. Also we have .square(), so: models/knn_image_classifier/package.json, line 3 at r1 (raw file):
update version models/knn_image_classifier/package.json, line 12 at r1 (raw file):
make it depend on the new, updated squeezenet version models/squeezenet/package.json, line 3 at r1 (raw file):
update squeezenet version models/squeezenet/squeezenet.ts, line 29 at r1 (raw file):
I think you can drop models/squeezenet/squeezenet.ts, line 31 at r1 (raw file):
dl.tensor1d([...]) models/squeezenet/squeezenet.ts, line 66 at r1 (raw file):
same here: use dl.tidy(() => ...); models/squeezenet/squeezenet.ts, line 93 at r1 (raw file):
small suggestion here and elsewhere below: you can chain models/squeezenet/squeezenet.ts, line 175 at r1 (raw file):
same here: use dl.tidy(() => ...); Comments from Reviewable |
They are updated, I can revert the demos to not be updated (since they are pulling the models from npm) and update them later. But knn-image-classifier is also pulling squeezenet from npm registry, and that will also result in errors. |
See my previous comment (above your comment). Update all versions as if everything was published to npm. Once we merge your PR (I'll force merge), I'll publish on npm and Travis will be happy |
Review status: 8 of 13 files reviewed at latest revision, 17 unresolved discussions. models/knn_image_classifier/demo.html, line 22 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
I copied it from the squeezenet demo, but don't know if it is Comments from Reviewable |
Review status: 7 of 14 files reviewed at latest revision, 17 unresolved discussions. models/knn_image_classifier/demo.html, line 22 at r1 (raw file): Previously, HalfdanJ (Jonas Jongejan) wrote…
Done. models/knn_image_classifier/demo.html, line 30 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/knn_image_classifier/knn_image_classifier.ts, line 23 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/knn_image_classifier/knn_image_classifier.ts, line 34 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/knn_image_classifier/knn_image_classifier.ts, line 88 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/knn_image_classifier/knn_image_classifier.ts, line 131 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/knn_image_classifier/knn_image_classifier.ts, line 149 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/knn_image_classifier/knn_image_classifier.ts, line 237 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/knn_image_classifier/knn_image_classifier.ts, line 254 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/knn_image_classifier/package.json, line 3 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/knn_image_classifier/package.json, line 12 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/squeezenet/package.json, line 3 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/squeezenet/squeezenet.ts, line 29 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/squeezenet/squeezenet.ts, line 31 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/squeezenet/squeezenet.ts, line 66 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/squeezenet/squeezenet.ts, line 93 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. models/squeezenet/squeezenet.ts, line 175 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. Comments from Reviewable |
Reviewed 1 of 12 files at r1, 7 of 7 files at r2. models/knn_image_classifier/demo.html, line 22 at r1 (raw file): Previously, HalfdanJ (Jonas Jongejan) wrote…
It's probably not necessary, but we can remove it later. Comments from Reviewable |
Making required changes to the knn image classifier and squeezenet models for 0.5.0. Added a simple demo to test knn image classifier.
This change is