Skip to content
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

Fix IC/DC annotation on Linux #2715

Merged
merged 8 commits into from Nov 22, 2019
Merged

Fix IC/DC annotation on Linux #2715

merged 8 commits into from Nov 22, 2019

Conversation

znation
Copy link
Contributor

@znation znation commented Nov 21, 2019

Removes call to add_image_features -- looks like this was perhaps prototyped but never made it into master, as the code on the server side does not exist. This fixes #2401.

Also in this PR:

  • Moves an assertion into a case where it makes sense; empty SArray's dtype is reported as 0 (integer) but that's spurious (as soon as it contains something other than null the dtype will reflect that type).
  • Adds the build directory to be marked as linguist-generated in .gitattributes. This should cause future PRs to ignore/hide code changes in this directory (as well as not counting its contents for language breakdown reported for the repo).

Zach Nation added 7 commits November 18, 2019 20:37
Rename .mm to .cpp and remove inclusion of Foundation; this file doesn't
appear to need ObjC at all, and we don't need to introduce an ObjC
compiler dependency on Linux.

This fixes the build for any Linux machines that don't have an ObjC
compiler toolchain.
if __platform == "linux" or __platform == "linux2":
model = _image_feature_extractor._create_feature_extractor("squeezenet_v1.1")
feature_sframe = model.extract_features(data, image_column, verbose=False, batch_size=64)
annotation_window.add_image_features(feature_sframe)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: since this doesn't appear to be implemented on the server side yet, I opened #2716 to add it.

@znation znation merged commit e7ed04f into apple:master Nov 22, 2019
@znation znation deleted the 2401 branch November 22, 2019 03:47
znation pushed a commit to znation/turicreate that referenced this pull request Nov 22, 2019
Break caused by apple#2715 -- in release mode, the unused variable causes a
warning-as-error.
znation pushed a commit that referenced this pull request Nov 22, 2019
Break caused by #2715 -- in release mode, the unused variable causes a
warning-as-error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Classifier - add_image_features method is not defined
2 participants