Giter Site home page Giter Site logo

Comments (5)

mlpack-bot avatar mlpack-bot commented on August 26, 2024

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions! 👍

from models.

rcurtin avatar rcurtin commented on August 26, 2024

Can you paste what the actual error is? I am not very familiar with this code, but I'm happy to try and take a look to see what is wrong and if there is an easy fix.

from models.

peichao538 avatar peichao538 commented on August 26, 2024

Can you paste what the actual error is? I am not very familiar with this code, but I'm happy to try and take a look to see what is wrong and if there is an easy fix.

Augmentation::ResizeTransform use mlpack::BilinearInterpolation to process image data, but mlpack::BilinearInterpolation has not been modified and adapted, so some project cannot be compiled and the function of "dataloader" also can not been used to process image directly. I have changed the code with a simple comment as shown in the pasted below, and have not completely implemented BilinearInterpolationType.

template
void Augmentation::ResizeTransform(
DatasetType& dataset,
const size_t datapointWidth,
const size_t datapointHeight,
const size_t datapointDepth,
const std::string& augmentation)
{
size_t outputWidth = 0, outputHeight = 0;

// Get output width and output height.
GetResizeParam(outputWidth, outputHeight, augmentation);

// We will use mlpack's bilinear interpolation layer to
// resize the input.
// mlpack::BilinearInterpolation<DatasetType, DatasetType> resizeLayer(
// datapointWidth, datapointHeight, outputWidth, outputHeight,
// datapointDepth);
// mlpack::BilinearInterpolation<DatasetType, DatasetType> resizeLayer(
// datapointWidth, datapointHeight, outputWidth, outputHeight,
// datapointDepth);
mlpack::BilinearInterpolation resizeLayer(
outputWidth, outputHeight);

DatasetType output;
resizeLayer.Forward(dataset, output);
dataset = std::move(output);
}

from models.

rcurtin avatar rcurtin commented on August 26, 2024

Right, that layer has not been adapted yet. If you are interested in doing the work of adapting the layer and opening a PR on the mlpack repository, it would be greatly appreciated! I don't currently have time for it (but will get around to it eventually).

from models.

mlpack-bot avatar mlpack-bot commented on August 26, 2024

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions! 👍

from models.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.