-
Notifications
You must be signed in to change notification settings - Fork 1.9k
DnnFeaturizeImage sample doesn't match the signature in the current API #3079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
So, usually the Catalog Extension Methods have APIs like I'd like to uplevel this question to the two questions:
Here are a list of APIs that do No. 1:
ValueMappingEstimator<TInputType, TOutputType> MapValue<TInputType, TOutputType>(
this TransformsCatalog.ConversionTransforms catalog,
string outputColumnName,
IEnumerable<KeyValuePair<TInputType, TOutputType>> keyValuePairs,
string inputColumnName = null,
bool treatValuesAsKeyType = false);
public static ValueMappingEstimator<TInputType, TOutputType> MapValue<TInputType, TOutputType>(
this TransformsCatalog.ConversionTransforms catalog,
string outputColumnName,
IEnumerable<KeyValuePair<TInputType, TOutputType[]>> keyValuePairs,
string inputColumnName = null);
public static ValueMappingEstimator MapValue(
this TransformsCatalog.ConversionTransforms catalog,
string outputColumnName, IDataView lookupMap, DataViewSchema.Column keyColumn, DataViewSchema.Column valueColumn, string inputColumnName = null)
public static DnnImageFeaturizerEstimator DnnFeaturizeImage(this TransformsCatalog catalog,
string outputColumnName,
Func<DnnImageFeaturizerInput, EstimatorChain<ColumnCopyingTransformer>> modelFactory,
string inputColumnName = null);
public static ImageResizingEstimator ResizeImages(this TransformsCatalog catalog,
string outputColumnName,
int imageWidth,
int imageHeight,
string inputColumnName = null,
ImageResizingEstimator.ResizingKind resizing = ImageResizingEstimator.ResizingKind.IsoCrop,
ImageResizingEstimator.Anchor cropAnchor = ImageResizingEstimator.Anchor.Center);
public static WordEmbeddingEstimator ApplyWordEmbedding(this TransformsCatalog.TextTransforms catalog,
string outputColumnName,
string customModelFile,
string inputColumnName = null) And here are the APIs that do No. 2:
public static TextFeaturizingEstimator FeaturizeText(this TransformsCatalog.TextTransforms catalog,
string outputColumnName,
TextFeaturizingEstimator.Options options,
params string[] inputColumnNames); And here is an API that just seems weird:
public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog,
string modelFile,
string outputColumnName,
string inputColumnName,
int? gpuDeviceId = null,
bool fallbackToCpu = false); |
The API for
LoadImage
isbut in the sample it is used like this:
One of them should be fixed, not sure which one? @TomFinley , @artidoro , @wschin
I kind of like the second option (the folder first, output and input column names together).
The text was updated successfully, but these errors were encountered: