One weird trick for Development Pod type of experience using Swift Package Manager and Xcode 12
Aug 8, 2020, 12:22 PM
CocoaPods served us very well for long years. It is an absolutely great package manager that is both convenient and robust enough to support very complex build pipelines that go well beyond regular iOS/macOS/tvOS development (like OpenCV2...
Automated CocoaPod releases with GitHub Actions
Sep 10, 2019, 8:44 AM
In this article we are going to quickly cover a trivial GitHub Actions setup I use for my open source Metal library Alloy to automatically…Continue reading on The Startup »
Combine the power of CoreGraphics and Metal by sharing resource memory
Mar 5, 2019, 8:47 AM
Metal API is great, it opens up a whole lot of possibilities on both mobile and desktop devices. However, GPUs can be sometimes a bit…Continue reading on Medium »
I don’t think there is such a concept of a clear color since we have grayscale (i.e.
Feb 6, 2019, 10:42 AM
I don’t think there is such a concept of a clear color since we have grayscale (i.e. single channel) image. If you really want to introduce opacity, you have to migrate to RA / RGBA pixel formats.
Thanks for pointing out!
Jun 20, 2018, 10:46 AM
Thanks for pointing out! Use of `self.` everywhere it can be inferred is mostly done on purpose. I like explicitness that it provides.In regards of reference cycle, I will need to look how to fix it, if you would want to send a...
Using first-class type objects to create UITableViews with multiple cell types
May 29, 2018, 8:31 AM
ProblemWhen you work for AI company, you always do a lot of technical demos to play with a certain technology in the wild. Modern algorithms tend to have quite a lot of parameters you would want to experiment with and sometimes the result...
The only requirement for image size is the one that comes from neural network.
Jan 22, 2018, 5:46 AM
The only requirement for image size is the one that comes from neural network. So you can use any image you want, CoreML will resize it to a proper format.
Basically uint8 array is just a packed pixel chanels in such order:
Jan 17, 2018, 3:41 PM
Basically uint8 array is just a packed pixel chanels in such order:r g b a r g b a r g b a … etcSo each row of image is stored consequently in such array
You can find a snippet on article’s GitHub https://github.com/s1ddok/HED-CoreML/blob/3e832710c56e767
Jan 17, 2018, 1:50 AM
You can find a snippet on article’s GitHub https://github.com/s1ddok/HED-CoreML/blob/3e832710c56e7679bc6010dd93e8639cd6f80a77/HED-CoreML/ViewController.swift#L133
Usually it should be found in model’s reposity or in the training code.
Dec 21, 2017, 7:30 AM
Usually it should be found in model’s reposity or in the training code. They are not stored in .mlmodel file or anywhere, but rather related to internal model’s logic