增加数据增强的函数,和yaml文件选项,并将'LOGO_FILES.npy'中保存的路径改为相对路径(方便共享)#56
Open
RRFRRF wants to merge 2 commits intolindsey98:mainfrom
Open
增加数据增强的函数,和yaml文件选项,并将'LOGO_FILES.npy'中保存的路径改为相对路径(方便共享)#56RRFRRF wants to merge 2 commits intolindsey98:mainfrom
RRFRRF wants to merge 2 commits intolindsey98:mainfrom
Conversation
Contributor
Author
|
只增加数据增强的函数,和yaml文件选项,相对路径的修改,需要和第一组再讨论一下,我这边修改一直不过 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1.数据增强



使用yaml文件中的选项【改为true】
可以在将logo图片转化为'LOGO_FEATS.npy'时,每个图片增加八个变体【多保存8个向量】
从而增强logo匹配的效果,适配【深夜模式、各种截屏分辨率等】
默认关闭这选项,不影响目前效果
将'LOGO_FILES.npy'中保存的路径改为相对路径(方便共享)
在'LOGO_FILES.npy'保存的是'LOGO_FEATS.npy'中logo的对应 yaml中 TARGETLIST_PATH:目录的相对目录:
before: C:\Users\11951\OneDrive\Desktop\phi\Phishpedia\models\expand_targetlist\adidas\images-2.png
now: adidas\images-2.png
这样别人可以直接将他的'LOGO_FILES.npy'和'LOGO_FEATS.npy'共享给我,而我不需要再reload 这些logo,方便共享。
在需要访问这些logo图片的时候会join为当前环境的绝对地址