Skip to content

Fit Method, The asynchronous operation has not completed. #833

@Aleksey1555

Description

@Aleksey1555

Hello.
Please Help!
I try to compile the code from example
this link

I run it, but on this line:

// 3. Load Images with in-memory type within the IDataView and Transform Labels to Keys (Categorical)
  IDataView shuffledFullImagesDataset = mlContext.Transforms.Conversion.
           MapValueToKey(outputColumnName: "LabelAsKey", inputColumnName: "Label", keyOrdinality: KeyOrdinality.ByValue)
          .Append(mlContext.Transforms.LoadRawImageBytes(outputColumnName: "Image",
                  imageFolder: fullImagesetFolderPath,
                  inputColumnName: "ImagePath"))
           .Fit(shuffledFullImageFilePathsDataset)
           .Transform(shuffledFullImageFilePathsDataset);

i get error: System.InvalidOperationException: 'The asynchronous operation has not completed.'
Please Help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions