Comments (4)
There is no such function but you can modify printChannelsForPixel() to return an array instead.
However, if you want to do this for all the pixels in the image, it's better to load the MPSImage into an array (with toFloatArray()
) and then use Accelerate functions to transpose everything. (Or wait until iOS 11, where MPSImage has a readBytes
function that puts all the channels together.)
from forge.
Thank you so much for all your help! Really appreciate it!
from forge.
Would you mind if I ask for clarification of what the format is after transposing the MPSimage and using the toFloatArray(). Currently ended up using the offset function in the YOLO example.
The context of what I am doing, if it helps, is trying to port the convdet function of squeezedet to this iOS example, defined as "_add_interpretation_graph" here: https://github.com/BichenWuUCB/squeezeDet/blob/master/src/nn_skeleton.py#L142
from forge.
toFloatArray() loads the data from the MPSImage slice-by-slice. The source code has a more detailed explanation. On iOS 11 you can use the MPSImage.readBytes() function to get the data in a more sensible format, such as height x width x channels.
from forge.
Related Issues (20)
- Are you going to develop Deconvolution layers?) HOT 2
- EXC_BAD_ACCESS on release executions HOT 4
- How to implement element wise layer in forge HOT 2
- How do I only use 1 or 2 classes for the YOLO example? HOT 1
- implant Yolo to ARKit HOT 3
- Greate job!
- code signing blocked mmap() HOT 1
- Forge is not support ios 11.3 HOT 4
- Error: framework not found Forge for architecture arm64
- Upload to appstore error
- Update ios version and xcode version, can not run any more. HOT 2
- Custom TinyYOLO doesn't work HOT 2
- update to Xcode 9.4 HOT 3
- mhh, not running HOT 1
- Reshape Layer HOT 1
- Error: the destination image texture is temporary and has a readCount of 0. HOT 2
- Add layer HOT 2
- Regarding offset for picking values for bounding box values HOT 6
- Results of MPSCNNConvlotion HOT 6
- [question] TensorFlow Lite HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forge.