Skip to content

用于点选汉字或者图标是否一样 基于孪生网络

License

Notifications You must be signed in to change notification settings

Anla2z/dianxuan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

之前没有训练的时候开启这个

mymox = Siamese() # 重新训练

之前训练过就可以再次训练 可以继承上次的模型进行优化

mymox = torch.load('./bj.pth') # 迁移学习

epoch = 10 # 训练多少epoch

把训练的图片保存在train文件夹下面

train
   丁
     丁_672.png
     丁_673.png
     .....
   七
     七_7408.png
     七_7409.png
     .....

把测试的图片保存在val文件夹下面

val
   丁
     丁_672.png
     丁_673.png
     .....
   七
     七_7408.png
     七_7409.png
     .....

启动训练

运行 train.py 文件

测试模型

运行 text.py 文件

image

About

用于点选汉字或者图标是否一样 基于孪生网络

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%