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

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

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

時間:2024-11-03  來源:合肥網(wǎng)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語言編程
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強度疲勞振動
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務(wù)平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養(yǎng) 十大衛(wèi)浴品牌排行 suno 豆包網(wǎng)頁版入口 wps 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    操人视频欧美| 久久99精品国产一区二区三区| 国产日本在线播放| 久久久精品久久| 日本a视频在线观看| 99色这里只有精品| 在线观看免费91| 国产欧美日韩伦理| 另类天堂视频在线观看| 免费在线国产精品| 久久久精品视频在线观看| 日韩高清国产一区在线观看| 国产高清在线一区二区| 亚洲欧美国产不卡| 97精品在线观看| 亚洲乱码日产精品bd在线观看 | 国产高清自拍99| 亚洲v日韩v综合v精品v| 91高跟黑色丝袜呻吟在线观看| 亚洲成人一区二区三区| 91国产美女视频| 日本一区二区三区视频在线播放| 国产成人av影视| 热re99久久精品国产99热| 日韩在线国产精品| 欧美精品在欧美一区二区| 国产精品区一区| 欧美黄色免费影院| 国产精品观看在线亚洲人成网 | 久久久久久久久久久国产| 日韩精品 欧美| 久久久国产视频| 黄色www在线观看| 国产精品久久久精品| 精品少妇人妻av免费久久洗澡 | 8090成年在线看片午夜| 日韩免费毛片视频| 国产精品久久国产精品99gif| 国产日韩视频在线播放| 中文字幕第一页亚洲| 91精品视频在线看| 人体精品一二三区| 国产精品精品一区二区三区午夜版| 国产日韩二区| 午夜精品一区二区三区av| 久久精品女人的天堂av| 欧美亚洲日本在线观看| 精品国产一区二区三区麻豆小说| 91九色蝌蚪国产| 欧美亚州在线观看| 欧美精品免费在线观看| 超碰免费在线公开| 日本a视频在线观看| 欧美精品日韩www.p站| 成人国产精品一区二区| 欧美一级在线播放| 国产精品视频xxx| julia一区二区中文久久94| 热久久美女精品天天吊色| 国产999精品视频| 久久综合九色综合网站| 精品视频在线观看一区二区| 亚洲中文字幕无码一区二区三区 | 极品粉嫩国产18尤物| 亚洲一区三区电影在线观看| 久草视频国产在线| 国产免费一区二区三区视频 | 国产精品久久久久久久免费大片| 成人短视频在线观看免费| 日韩国产精品一区二区| 久久国产精品久久久久久| 国产成人亚洲欧美| 国产欧美中文字幕| 日韩免费av一区二区三区| 欧美乱人伦中文字幕在线| 国产成人精品久久二区二区| 国产欧美综合精品一区二区| 欧洲成人一区二区| 亚洲高清精品中出| 国产精品成人在线| 久久狠狠久久综合桃花| 国产精品一区二区免费看| 热草久综合在线| 亚洲高清资源综合久久精品| 国产精品第七十二页| 久久久久久久久久久成人| 99久久久精品视频| 国产在线精品二区| 日韩精品一区二区三区电影| 亚洲高清资源综合久久精品| 精品不卡一区二区三区| 久久久精品一区二区三区| 国产成人精品a视频一区www| 白白操在线视频| 国产日韩一区二区| 欧美日韩电影一区二区| 亚洲三区在线| 欧美精品免费看| 国产精品免费一区二区三区四区| 久草青青在线观看| 99热久久这里只有精品| 国产九色porny| 国产在线青青草| 欧美久久在线| 日韩精品第1页| 少妇特黄a一区二区三区| 一道本在线观看视频| 欧美成人亚洲成人| 国产精品久久久一区| 久久久精品影院| 久久99蜜桃综合影院免费观看| 91免费国产视频| 苍井空浴缸大战猛男120分钟| 国产久一道中文一区| 国产日产久久高清欧美一区| 国产日韩一区二区| 国产日韩换脸av一区在线观看| 麻豆精品视频| 欧美日韩一区二区视频在线| 青青影院一区二区三区四区| 日本国产在线播放| 日韩视频一二三| 日韩极品视频在线观看| 日韩少妇中文字幕| 日韩精品免费播放| 日韩中文字幕在线免费| 亚洲精品国产suv一区88| 亚洲国产精品123| 午夜一区二区三视频在线观看| 亚洲影院污污.| 亚洲视频精品一区| 亚洲欧美日韩国产成人综合一二三区 | 美女av一区二区| 国产精品久久久亚洲| 国产精品女人网站| 久久视频在线观看免费| 国产精品日韩一区二区| 国产精品大陆在线观看| 精品久久一二三| 一本一道久久久a久久久精品91| 亚洲欧洲精品一区二区 | 日韩一级特黄毛片| 日本一区免费在线观看| 日本精品视频一区| 日本一区二区三区精品视频| 日韩欧美一区三区| 欧美久久综合性欧美| 国产日产欧美精品| 7777精品视频| 久久综合伊人77777尤物| 欧美猛少妇色xxxxx| 亚洲直播在线一区| 日韩欧美在线观看强乱免费| 男人添女人下部视频免费| 国产欧美一区二区三区在线| 91九色蝌蚪成人| 久久精品视频在线播放| 久久久久久国产| 日韩不卡av| 国产日韩精品视频| 99视频日韩| 色av吧综合网| 蜜臀久久99精品久久久久久宅男| 亚洲精品在线免费看| 青草青草久热精品视频在线观看 | 欧美日韩一区二区三区在线观看免| 国产日韩欧美二区| 产国精品偷在线| 久久久久免费精品| 久久国产精品久久精品| 电影午夜精品一区二区三区| 欧美国产激情视频| 北条麻妃在线视频观看| 久久久国产精彩视频美女艺术照福利| 久久成人18免费网站| 日韩尤物视频| 美媛馆国产精品一区二区| 97精品国产97久久久久久免费| 久久www视频| 精品免费国产| 日本高清视频一区二区三区| 国产日韩中文字幕在线| 久久免费国产精品1| 久久成人在线视频| 日韩免费视频在线观看| 成人免费在线网址| 久久久www成人免费精品| 亚洲伊人婷婷| 精品日本一区二区| 国产精品99导航| 欧美情侣性视频| 青青草成人免费在线视频| 99在线观看视频网站| 国产精品美女主播在线观看纯欲 | 国产区亚洲区欧美区| 久久久久久亚洲精品中文字幕| 欧美激情国产日韩精品一区18| 欧美亚洲免费在线| 久久久久久www| 亚洲影院色在线观看免费|