Show HN: Red pepper chef – distinguish parts of a red pepper to keep vs. discard

Show HN: Red pepper chef – distinguish parts of a red pepper to keep vs. discard

Visual of output, distinguish between parts of a red pepper we wish to discard, and parts we wish to keep
In this article:
How to create new training data for object detection
Train a custom object detection model (in one line of code)
Deploy and get predictions (also in one line)

Creating the training data
Photos
Take photos or video. Training through the SDK
Github sample
Install the library: pip install diffgram
Example code:
from diffgram import Diffgram

project = Diffgram(
project_string_id = client_id = “replace_with_client_id”,
client_secret = Construct new training with all defaults
brain = project.train.start(
method=”object_detection”,
we define credentials and create a class Project object. brain = project.get_model(name = “my model”)Then we call one of the predict options, ie
inference = brain.predict_from_url(url)The default deploy option takes a minute to warm up then a second per image.

Source: medium.com