jiangxiluning / MASTER-TF

MASTER
MIT License
139 stars 43 forks source link

模型输入尺寸是限定的吗 #5

Closed LanWong1 closed 4 years ago

LanWong1 commented 4 years ago

您好,请问模型的输入尺寸是限定的吗?我测试的时候发现我用长一点的文本框,识别就会出错。

jiangxiluning commented 4 years ago

输入尺寸是多少呢,长一点文本框是指文字特别多么

LanWong1 commented 4 years ago
font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}

大概300*48

                            wangyi4422

                                wangyi4422@foxmail.com

    签名由
    网易邮箱大师
    定制

在2020年08月5日 22:47,Ning Lu<notifications@github.com> 写道: 

输入尺寸是多少呢,长一点文本框是指文字特别多么

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

jiangxiluning commented 4 years ago

如果改变了图像尺寸,由于跟训练图像尺寸不一致,会导致性能有些差异。毕竟图像特征通过卷积后的表现也不一致了,单位图像帧所包含的信息会更加稀疏且level 更低,因为卷积核不变,层数不变图像越大,cnn 最后一层单像素包含的信息量不同。

LanWong1 commented 4 years ago
font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}

那如何做到泛化性强一点呢?训练的时候把宽度设置大一点?

                            wangyi4422

                                wangyi4422@foxmail.com

    签名由
    网易邮箱大师
    定制

在2020年08月6日 00:58,Ning Lu<notifications@github.com> 写道: 

如果改变了图像尺寸,由于跟训练图像尺寸不一致,会导致性能有些差异。毕竟图像特征通过卷积后的表现也不一致了,单位图像帧所包含的信息会更加稀疏且level 更低,因为卷积核不变,层数不变图像越大,cnn 最后一层单像素包含的信息量不同。

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

jiangxiluning commented 4 years ago

对,训练数据也需要调大

LanWong1 notifications@github.com 于2020年8月6日周四 上午8:57写道:

font{ line-height: 1.6; } ul,ol{ padding-left: 20px; list-style-position: inside; }

那如何做到泛化性强一点呢?训练的时候把宽度设置大一点?

wangyi4422

wangyi4422@foxmail.com

签名由 网易邮箱大师 定制

在2020年08月6日 00:58,Ning Lunotifications@github.com 写道:

如果改变了图像尺寸,由于跟训练图像尺寸不一致,会导致性能有些差异。毕竟图像特征通过卷积后的表现也不一致了,单位图像帧所包含的信息会更加稀疏且level 更低,因为卷积核不变,层数不变图像越大,cnn 最后一层单像素包含的信息量不同。

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jiangxiluning/MASTER-TF/issues/5#issuecomment-669621089, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANWXLRGM3TMFMHMCI3FHQ3R7H5Y7ANCNFSM4PVRLYVA .

LanWong1 commented 4 years ago
font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}

在predict阶段 是不是都是把图像缩放成160*40?

                            wangyi4422

                                wangyi4422@foxmail.com

    签名由
    网易邮箱大师
    定制

在2020年08月6日 10:43,Ning Lu<notifications@github.com> 写道: 

对,训练数据也需要调大

LanWong1 notifications@github.com 于2020年8月6日周四 上午8:57写道:

font{

line-height: 1.6;

}

ul,ol{

padding-left: 20px;

list-style-position: inside;

}

那如何做到泛化性强一点呢?训练的时候把宽度设置大一点?

wangyi4422

wangyi4422@foxmail.com

签名由

网易邮箱大师

定制

在2020年08月6日 00:58,Ning Lunotifications@github.com 写道:

如果改变了图像尺寸,由于跟训练图像尺寸不一致,会导致性能有些差异。毕竟图像特征通过卷积后的表现也不一致了,单位图像帧所包含的信息会更加稀疏且level

更低,因为卷积核不变,层数不变图像越大,cnn 最后一层单像素包含的信息量不同。

—You are receiving this because you authored the thread.Reply to this

email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.

Reply to this email directly, view it on GitHub

https://github.com/jiangxiluning/MASTER-TF/issues/5#issuecomment-669621089,

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AANWXLRGM3TMFMHMCI3FHQ3R7H5Y7ANCNFSM4PVRLYVA

.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

jiangxiluning commented 4 years ago

@LanWong1 lan 需要等宽高比resize 到 48, 剩下的看宽度,不够就padding