Coder Social home page Coder Social logo

hhy5277 / turicreate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apple/turicreate

0.0 1.0 0.0 123.19 MB

Turi Create simplifies the development of custom machine learning models. 一个简化的机器学习库 它简化了机器学习模型的创建和部署,可用于复杂的任务,如对象检测、活动分类和推荐系统。

License: BSD 3-Clause "New" or "Revised" License

CMake 0.73% Shell 0.21% Python 19.18% C 0.46% C++ 67.22% Objective-C 0.46% Objective-C++ 0.90% Makefile 0.03% HTML 0.10% CSS 1.37% JavaScript 5.13% Swift 4.23%

turicreate's Introduction

Quick Links: Installation | Documentation | WWDC 2018 Talk

Turi Create

Turi Create

Click here to check out our talk at WWDC 2018!

Turi Create simplifies the development of custom machine learning models. You don't have to be a machine learning expert to add recommendations, object detection, image classification, image similarity or activity classification to your app.

  • Easy-to-use: Focus on tasks instead of algorithms
  • Visual: Built-in, streaming visualizations to explore your data
  • Flexible: Supports text, images, audio, video and sensor data
  • Fast and Scalable: Work with large datasets on a single machine
  • Ready To Deploy: Export models to Core ML for use in iOS, macOS, watchOS, and tvOS apps

With Turi Create, you can accomplish many common ML tasks:

ML Task Description
Recommender Personalize choices for users
Image Classification Label images
Object Detection Recognize objects within images
Style Transfer Stylize images
Activity Classification Detect an activity using sensors
Image Similarity Find similar images
Classifiers Predict a label
Regression Predict numeric values
Clustering Group similar datapoints together
Text Classifier Analyze sentiment of messages

Example: Image classifier with a few lines of code

If you want your app to recognize specific objects in images, you can build your own model with just a few lines of code:

import turicreate as tc

# Load data 
data = tc.SFrame('photoLabel.sframe')

# Create a model
model = tc.image_classifier.create(data, target='photoLabel')

# Make predictions
predictions = model.predict(data)

# Export to Core ML
model.export_coreml('MyClassifier.mlmodel')

It's easy to use the resulting model in an iOS application:

Turi Create

Supported Platforms

Turi Create supports:

  • macOS 10.12+
  • Linux (with glibc 2.12+)
  • Windows 10 (via WSL)

System Requirements

Turi Create requires:

  • Python 2.7, 3.5, 3.6
  • x86_64 architecture
  • At least 4 GB of RAM

Installation

For detailed instructions for different varieties of Linux see LINUX_INSTALL.md. For common installation issues see INSTALL_ISSUES.md.

We recommend using virtualenv to use, install, or build Turi Create.

pip install virtualenv

The method for installing Turi Create follows the standard python package installation steps. To create and activate a Python virtual environment called venv follow these steps:

# Create a Python virtual environment
cd ~
virtualenv venv

# Activate your virtual environment
source ~/venv/bin/activate

Alternatively, if you are using Anaconda, you may use its virtual environment:

conda create -n venv python=2.7 anaconda
source activate venv

To install Turi Create within your virtual environment:

(venv) pip install -U turicreate

Version 5.0 (New)

Turi Create 5.0 includes:

  • GPU Acceleration on Macs for:
    • Image Classification (macOS 10.13+)
    • Image Similarity (macOS 10.13+)
    • Object Detection (macOS 10.14+)
    • Activity Classification (macOS 10.14+)
  • New Task: Style Transfer
  • Recommender model deployment
  • Vision Feature Print model deployment

Documentation

The package User Guide and API Docs contain more details on how to use Turi Create.

GPU Support

Turi Create does not require a GPU, but certain models can be accelerated 9-13x when utilizing a GPU.

Turi Create automatically utilizes Mac GPUs for the following tasks:

  • Image Classification (macOS 10.13+)
  • Image Similarity (macOS 10.13+)
  • Object Detection (macOS 10.14+, discrete GPU only)
  • Activity Classification (macOS 10.14+, discrete GPU only)

For linux GPU support, see LinuxGPU.md.

Building From Source

If you want to build Turi Create from source, see BUILD.md.

Contributing

See CONTRIBUTING.md.

turicreate's People

Contributors

abhishekpratapa avatar afranklin avatar agnanachandran avatar alonpal avatar brettkoonce avatar delirious-lettuce avatar denisenepraunig avatar emannueloc avatar esamanas avatar fareeha avatar frogg avatar gustavla avatar guy4261 avatar igiloh avatar jamesdale avatar jca122204 avatar jeis2497052 avatar kant avatar karthikdash avatar literalpie avatar martinjrp avatar midrissi avatar mordoron avatar nickjong avatar shantanuchhabra avatar shreyasvj25 avatar srikris avatar tobyroseman avatar yhoonkim avatar znation avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.