国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代做IMSE7140、代寫Java/c++程序語言
代做IMSE7140、代寫Java/c++程序語言

時間:2024-11-03  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



IMSE7140 Assignment 2
Cracking CAPTCHAs
(20 points)
2.1 Brief Introduction
CAPTCHA or captcha is the acronym for “Completely Automated Public Turing test
to tell Computers and Humans Apart.” You must have been already familiar with it
because of its popularity in preventing bot attacks or spam everywhere. This assign ment, however, will guide you in implementing a deep learning model that can crack a
commercial-level captcha!
You deliverables for this assignment should include
1. A single PDF file answers.pdf with answers to all the questions explicitly marked
by “Q” with a serial number in this document, and
2. A train.py file to fulfill the programming task requirements marked by “PT.”
Of course, GPUs can facilitate your experiments—Don’t worry if you don’t have any,
the training requirement is deliberately simplified.
2.2 Training your model
The captchas we will crack is the multicolorcaptcha. Please pip install the exact version
1.2.0 (the current latest one) in case there might be any incompatibility for other releases.
We use the following codes to generate captchas.
1 from multicolorcaptcha import CaptchaGenerator
2
3 generator = CaptchaGenerator (0)
4 captcha = generator . gen_captcha_image ( difficult_level =0)
5 image = captcha . image
6 characters = captcha . characters
7 image . save ( f"{ characters }. png", "PNG")
In this snippet, CaptchaGenerator(0) configures the image size to 256 × 144 pixels,
and the difficult level is set to 0 so that the captchas only contains four 0–9 digits.
Please run the code snippet on your computer. If the captcha is successfully generated,
it should look like Figure 2.1.
1
2.2. Training your model S. Qin
Figure 2.1: Sample captcha with digits 0570
The training and the validation datasets are generated and attached in folders
capts train and capts val. For any machine learning problem, before you start to
devise a solution, it is always a good idea to observe the data and gain some intuition
first. You may immediately recognize some difficulties in this task:
• The digits have a set of random fonts and colors;
• Some certain range of random rotations are applied to the digits;
• Some line segments are randomly added to the image.
Such a task is considered impossible for traditional pattern recognition methods,
which may tackle the problem in a process like this: image thresholding, segmenta tion, handcrafted filter design, and pattern matching. We can conjecture that “filter
design” may fail in capturing useful features and “pattern matching” may have a poor
performance.
Fortunately, in the deep learning era, we can delegate the pattern or feature extrac tion job to deep neural networks. As introduced in the previous lecture “Deep Learning
for Computer Vision,” the slide “Understand feature maps: CAPTCHA recognition”
shows that a typical architecture for the task consists of two parts:
1. A backbone model to extract a feature map from the captcha image, and
2. A certain amount of prediction heads to interpret the feature map to readable
forms.
We will follow this architecture in this assignment. I encourage you to search open source solutions and learn from their experience. Here we follow this Kaggle post by
Ashadullah Shawon.
PT| Use capts train as the training dataset, capts val as the validation dataset, and Keras
as the deep learning framework, referring to Shawon’s solution, provide the training code
train.py that fulfills the following requirements. “Copy and paste” the codes from the
original post is allowed, as well as other AI-generated codes.
2
2.3. Example: A practical model S. Qin
1. The maximal number for epochs should be 10. Considering some students
will train the model by CPU, it is fair to limit the number of epochs, so the training
time for the model should be less than half an hour.
2. The accuracy for one digit should be no less than 30% after training for
10 epochs. The training outputs contain four accuracies respective to the four
digits. Since they are similar, you will only need to examine one of them. Keep in
mind that 30% for one digit indicates that the overall accuracy for the recognition
is only 0.3
4 = 0.81%. Such a low accuracy is not useful for cracking the captcha.
However, on the one hand, you may need a GPU to experiment on a practical
solution; on the other hand, a wild guess for a 0–9 digit has an accuracy of 10%,
so if your model’s accuracy can reach 30% after 10 epochs, it already indicates
the model learns from the training set. Hint: if the accuracy for one digit keeps
wandering around 0.1 but not increasing in the first two or three epochs, it is the
signal that you should modify somewhere in your code and try again.
3. The trained model should be saved as a file my model.keras after training.
Though, this model file my model.keras doesn’t need to be uploaded.
Q1| Can we convert the captcha images to grayscale at the preprocessing stage before train ing? What is the possible advantage by doing that? If any, can you point out the
possible disadvantage?
Q2| After the 10-epoch training, what are your accuracies of one digit, for the training and
the validation datasets respectively?
Q3| Is the accuracy for the validation dataset lower than that for the training dataset? What
are the possible reasons?
Q4| How can we improve the model’s performance on the validation dataset? List at least
three different measures.
2.3 Example: A practical model
To demonstrate that the backbone–heads architecture can actually solve the real-world
captcha, I trained a relatively large model by an Nvidia GeForce RTX 30** GPU.
You may find in attached the model file 099**0.9956.keras and the inference code
inference.py. The accuracies versus training epochs are shown in Figure 2.2. The
inference code reads a randomly generated captcha, inferences the model, and compares
the predicted results with the targets. You can press “n” for the next captcha or “q” to
quit the program. You may need to pip install keras cv to run the code.
Q5| What kind of backbone did I use in the model 099**0.9956.keras?
Q6| The backbone’s pre-trained weights on the ImageNet 2012 dataset were loaded before
training. What is the possible advantage by doing that?
Q7| Why didn’t I use any dropout in the model? Guess the reason.
Q8| In Figure 2.2, you may have noticed that the accuracies rise very fast from 0 to 0.9, but
significantly slow from 0.95 to 0.99. Explain the phenomenon.
Q9| Using the same hardware (which means you can’t upgrade the GPU, for example), how
can we speed up the learning process of the model, i.e. the rate of convergence?
3
2.3. Example: A practical model S. Qin
0 200 40**00 800 1000
Epoch
0.2
0.4
0.6
0.8
1.0
Model Accuracies
digi0
digi1
digi2
digi3
Figure 2.2: Accuracies through 1000 epochs in training
Q10| Since the accuracy for one digit is about 99%, the overall accuracy for a captcha is
0.994 ≈ 96%. This performance would be better than humans. Can you propose some
methods that can even further improve the performance?
Please note that, not all the questions above have a definite answer. You may also
need to do some research as the course doesn’t cover all the details in class. The source
code for training this model and the reference answers will be available on Moodle or
sent by email after all the students completing the submission.


請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp




 

掃一掃在手機打開當前頁
  • 上一篇:IS3240代做、代寫c/c++,Java程序語言
  • 下一篇:DATA 2100代寫、代做Python語言編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    中文字幕中文字幕一区三区| 日本一区美女| 无码av天堂一区二区三区| 国产自产精品| 国产精品手机在线| 日韩欧美激情一区二区| 久久久久国产精品熟女影院| 亚洲精品免费一区二区三区| 国产精品一区二区你懂得| 国产精品久久久久久av下载红粉| 欧美性受xxxx黑人猛交| 91精品国产综合久久香蕉922 | 亚洲不卡中文字幕| 国产精品永久在线| 毛片精品免费在线观看| 国产又大又长又粗又黄| 国产精品高潮视频| 黄瓜视频免费观看在线观看www| 久久久久久这里只有精品| 日韩av在线播放不卡| 国产成人亚洲综合无码| 日韩视频在线观看国产| 久久久久久久久久久99| 欧美视频第三页| 久久精品国产一区| 欧美大香线蕉线伊人久久 | 国产伦精品一区二区三区照片91| 国产精品国语对白| 国产综合欧美在线看| 精品国产免费人成电影在线观...| 黄色三级中文字幕| 国产精品久久久久久久久久久久冷| 欧美国产视频在线观看| 国产精品久久久久久久电影| 国产视频99| 亚洲欧美国产不卡| 国产成人亚洲综合无码| 欧美中日韩一区二区三区| 国产精品我不卡| 国产免费毛卡片| 亚洲啊啊啊啊啊| 久久久久久久久久久国产| 欧美日韩国产高清视频| 精品久久sese| 久久综合九色综合88i| 欧美在线视频观看免费网站| 久久久999国产精品| 国产日韩av在线| 亚洲欧美在线网| 国产成人无码精品久久久性色| 蜜臀av.com| 亚洲 高清 成人 动漫| www.日本久久久久com.| 国产情人节一区| 日韩在线综合网| 久久夜色精品国产欧美乱| 91精品久久久久久久久久入口| 人妻无码视频一区二区三区| 不卡av在线网站| 久久一区二区精品| 黄页网站大全在线观看| 美女黄色丝袜一区| 久久久久这里只有精品| 国产又大又长又粗又黄| 婷婷亚洲婷婷综合色香五月| 国产精品乱码一区二区三区| 91久久久久久久久久久| 男人天堂成人在线| 亚洲国产一区二区精品视频 | 色乱码一区二区三区熟女| 国产精品日韩欧美一区二区 | 欧美日韩第一页| 久久99精品久久久水蜜桃| 国产在线xxxx| 日本成人黄色| 欧美日本中文字幕| 日韩在线资源网| 91精品国产色综合| 国产综合久久久久| 日本久久高清视频| 色综合91久久精品中文字幕| 日韩在线视频观看| 91av网站在线播放| 国产日韩精品在线播放| 日本精品福利视频| 亚洲熟妇无码另类久久久| 国产精品视频一二三四区| 国产精品999999| 国产伦精品一区二区三区四区视频_| 日韩欧美精品免费| 午夜精品短视频| 中国丰满熟妇xxxx性| 国产精品久久久久久久7电影| 久久99精品久久久久久久久久 | 国产精品91免费在线| 国产超级av在线| 欧美激情中文字幕乱码免费| 国产一区视频免费观看| 91精品国产自产在线观看永久| 久久这里只有精品99| 狠狠色综合一区二区| 日韩亚洲综合在线| 日韩在线综合网| 81精品国产乱码久久久久久| 亚洲高清在线观看一区| 国产精品99久久久久久久久| 亚洲一区精彩视频| 久久综合九色综合88i| 色女人综合av| 久久九九亚洲综合| 欧美性天天影院| 按摩亚洲人久久| 99在线视频首页| 在线视频91| 国产区欧美区日韩区| 中文字幕日韩精品久久| 国产精品视频福利| 国产精品男人爽免费视频1| 黄黄视频在线观看| 日韩亚洲综合在线| 免费拍拍拍网站| 一区二区视频在线播放| 九九精品视频在线| 久久五月天综合| 欧美成年人在线观看| 久久天天躁狠狠躁夜夜爽蜜月| 精品国产一区二区三区久久狼黑人| 色婷婷综合成人| 日韩在线视频网站| 日韩视频免费在线观看| 国产成人精品在线| 国产精品无码免费专区午夜| 国产精品久久久久久久7电影| 国产精品九九九| 欧美激情日韩图片| 亚洲欧美国产一区二区| 欧美一区二区视频97| 日韩av在线播放不卡| 欧美日韩午夜爽爽| 美女视频久久| 国产一区二区在线免费视频| 国产日韩在线一区二区三区| 成人在线精品视频| 7777精品伊久久久大香线蕉语言| 久久综合九色综合久99| 日韩亚洲第一页| 精品免费日产一区一区三区免费 | 热re99久久精品国产66热| 青青在线视频免费观看| 欧美午夜性视频| 国内精品伊人久久| 福利视频一区二区三区四区| 国产精品1区2区在线观看| 久久av二区| 国产精品乱码视频| 中文字幕乱码一区二区三区| 日韩中文不卡| 黄色一级一级片| 分分操这里只有精品| 国产成人黄色av| 国产精品久久久一区| 一道精品一区二区三区| 日韩wuma| 国产天堂在线播放| 91精品国产91久久久久久吃药| 国产成人亚洲精品无码h在线| 国产精品三区www17con| 亚洲午夜久久久影院伊人 | 北条麻妃在线视频观看| 久久久久在线观看| 九九热r在线视频精品| 日本精品视频一区| 国产九区一区在线| 日韩亚洲欧美中文高清在线| 尤物一区二区三区| 欧美午夜小视频| 91久久偷偷做嫩草影院| 国产精品日韩二区| 天堂精品视频| 精品无码久久久久久久动漫| 久久五月天婷婷| 久久综合亚洲社区| 奇米成人av国产一区二区三区| 国产精品一区视频| 日韩在线激情视频| 亚洲在线视频观看| 精品一区久久久久久| 国产ts人妖一区二区三区| 欧美激情一二三| 欧美极品一区| 久久久天堂国产精品女人| 欧美老少配视频| 欧美诱惑福利视频| 久久久综合香蕉尹人综合网| 国产精品免费一区二区三区在线观看 | 日韩欧美一区二区视频在线播放| 国产精品一区二区三区观看 | 精品免费日产一区一区三区免费 | 欧美性在线观看| 8090成年在线看片午夜|