Giter Club home page Giter Club logo

Comments (3)

powderluv avatar powderluv commented on May 29, 2024

The instructions on the README.md will now work on an Apple M1. By default it runs the samples on the CPU but it should be easy to switch the API to choose the M1 GPU. We plan to add a flag to switch the backend from the sample scripts command line to make it easier.

from shark.

powderluv avatar powderluv commented on May 29, 2024

I have Conda 3.9x python and rustc compiler installed with curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Before running examples activate venv with:
  source /Users/anush/github/dshark/shark.venv/bin/activate
(shark1.venv) (base) a@MacBook-Pro dshark % source /Users/anush/github/dshark/shark.venv/bin/activate

(shark.venv) (base) anush@MacBook-Pro dshark % python -m  shark.examples.resnet50_script                                                                                                                               
load image from https://upload.wikimedia.org/wikipedia/commons/2/26/YellowLabradorLooking_new.jpg
torch.Size([1, 3, 224, 224])
Target triple found:arm64-apple-darwin21.5.0

The top 3 results obtained via shark_runner is:
[('Labrador retriever', 52.36594009399414), ('Chesapeake Bay retriever', 7.188111305236816), ('golden retriever', 5.128645420074463)]

The top 3 results obtained via torch is:
[('Labrador retriever', 52.36603546142578), ('Chesapeake Bay retriever', 7.188104152679443), ('golden retriever', 5.128644943237305)]

from shark.

powderluv avatar powderluv commented on May 29, 2024

Opened #31 for making backend switching easy from command line.

Please open a new issue if you run into any problems. We will be adding validated models in the tracker sheet on the first page.

from shark.

Related Issues (20)

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.