dotnet / dotnet/machinelearning-modelbuilder

Support custom data sources

オープン
#2,174 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
Code Example? Feature request Stale
主要言語
Dockerfile
スター
285
フォーク
66
PR マージ指標
30日以内にマージされた PR はありません

説明

I want to use image classification, but I have images in heterogeneous locations, and some need some kind of custom pre-processing, so the current image data sources is very limiting

Also, there's some other scenarios I'm facing which might require the images to feed to ML will need some sort of preprocessing. It's a big waste to have to write them to temporary files.

```json
"DataSource": {
"Type": "Folder",
"Version": 1,
"FolderPath": "c:\\Images"
},
```

But I would like to do something like this:

```json
"DataSource": {
"Type": "Class",
"Version": 1,
"ClassName": "CustomImageImporter"
},
```
```c#
class CustomImageImporter : IImageClassifierImporter
{
public IEnumerable<(string Label, Byte[] Image)> EnumerateLabeledInputImages()
{
yield return ("cat", LoadBytes("cat.png"));
yield return ("dog", LoadBytes("dog.png"));
}
}
```

The only alternative I have right now is not using AutoML and writing the whole thing in ML

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

ソースファイルやテストは指定されていません。まず、Type "Folder" の JSON DataSource がどのように処理されているか、また IImageClassifierImporter をどこに組み込めそうかを追跡してください。カスタム importer が、異なる場所にあるラベル付き画像バイト列を、テンポラリファイルを必要とせずに前処理付きで提供できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
machine-learning, tooling
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。