Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🎸 Machine Learning for Guitars: Retraining InceptionV3 to classify guitars and Converting Tensorflow to CoreML for iOS (presentation code)

License

NotificationsYou must be signed in to change notification settings

jottenlips/Guitar-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Machine Learning for Guitars - this is an elaboration on tensorflow for poets

Tensorflow

pip install virtualenv

virtualenv env

source env/bin/activatepip install -tensorflowpip install -pillowpip install -tfcoreml

IMAGE_SIZE=224ARCHITECTURE="mobilenet_0.50_${IMAGE_SIZE}"

Download images

I usedhttps://github.com/hardikvasa/google-images-download CLI

Resize Images

change the paths in resize.py

cd scriptspython resize.py

Retrain Model on your images

python -m scripts.retrain \  --bottleneck_dir=tf_files/bottlenecks \  --how_many_training_steps=500 \  --model_dir=tf_files/models/ \  --summaries_dir=tf_files/training_summaries/"${ARCHITECTURE}" \  --output_graph=tf_files/retrained_graph.pb \  --output_labels=tf_files/retrained_labels.txt \  --architecture="${ARCHITECTURE}" \  --image_dir=tf_files/Guitars

Test tensorflow model

python -m scripts.label_image \    --graph=tf_files/retrained_graph.pb  \    --image=../Desktop/sg.jpg

tensorboard --logdir tf_files/training_summaries &

Conversion to CoreML

cd scripts

Change all paths to where you want to read/write your model and test your images.

Test conversion

python labelcoreml.py

Convert model

python converter.py

From Core ML in ArKit, my fork from the presentation will be up soon.https://github.com/hanleyweng/CoreML-in-ARKit

https://github.com/jottenlips/GuitarClassifier-iOS My fork of that repo.

About

🎸 Machine Learning for Guitars: Retraining InceptionV3 to classify guitars and Converting Tensorflow to CoreML for iOS (presentation code)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp