CodingTrain / CodingTrain/Auto-Encoder-Demo

Getting files

未关闭
#7 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
12
派生
14
PR 合并指标
30 天内没有已合并 PR

描述

Maybe you can use the file system object and get files form a specified folder?

async function get_files(total){

const myFolder = 'testfolder';
let files = []
let count =0

fs.readdirSync(myFolder).forEach(file => {
if(count <= total){
file = testFolder + file

files.push(file)
} else {

}

count ++
});
return files
}

Pass the list into the function that loads the images and loop through the array. Also resizing the image to fit your model specifications. I used 100*100 images. This way any image from any folder can be used as training data.

`
async function loadImages(files){
console.log("files",files)
const x_inputs = [];
let l=0
for(let file of files){
const img = await Jimp.read(file).then((img) => {
img.resize(100,100)
return img
})... ... ...

`
Try the number training dataset. I get some very cool results.

I have been fascinated with this for the last week, so I thought I would thank you and provide my feedback.

James.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先定位现有的图像加载和训练入口点,然后将它们与提议的 get_files 和 loadImages 函数进行比较。检查项目目前如何提供图像路径和模型维度;当指定文件夹能够提供一个有界的图像数据集,并且图像在训练前完成调整大小且不破坏现有流程时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, node.js
领域
computer-vision, machine-learning
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。