排列5走势图

8个计算机视觉深度学习中常见的Bug!

发布时间:2019-12-18 16:26:00
阅读量:165
作者:猎维人工智能培训
[导读]:
给大家总结了8个计算机视觉深度学习中的常见bug,相信大家或多或少都遇到过,希望能帮助大家避免一些问题。

ZAIJIEJUESHENDUXUEXIWENTISHI,YOUYUYIXIEBUQUEDINGXING,HENRONGYICHUXIANZHEIZHONGLEIXINGDEbug:HENRONGYIKANDAOwebYINGYONGCHENGXULUYOUQINGQIUSHIFOUZHENGQUE,ERBURONGYIJIANCHANIDETIDUXIAJIANGBUZHOUSHIFOUZHENGQUE。RANER,YOUHENDUOCUOWUSHIKEYIBIMIANDE,YINCIXIWANGBENPIANWENZHANGKEYIBANGZHUNIZHISHAOBIMIANQIZHONGDEYIXIEWENTI。

1. 翻转图片以及关键点

排列5走势图JIASHEZAIGUANJIANDIANJIANCEDEWENTISHANG。SHUJUKANQILAIXIANGYIDUITUXIANGHEYIXILIEDEGUANJIANDIANYUANZU。QIZHONGMEIGEGUANJIANDIANSHIYIDUIxHEyZUOBIAO。

RANGWOMENDUIZHEIGESHUJUJINXINGJICHUDEZENGQIANG:

KANQILAISHIZHENGQUEDE,NG?WOMENBATAKESHIHUA。

BUDUICHENG,KANQILAIHENQIGUAI!RUGUOWOMENJIANCHAJIZHINI?

排列5走势图BUHAO!ZHEISHIYIGEDIANXINGDEoff-by-oneCUOWU。ZHENGQUEDEDAIMASHIZHEIYANGDE:

WOMENTONGGUOKESHIHUAFAXIANLEZHEIGEWENTI,DANSHI,SHIYONG“x = 0”DIANJINXINGDANYUANCESHIYEHUIYOUSUOBANGZHU。YIGEYOUQUDESHISHISHI:YOUYIGETUANDUIZHONGYOUSANGEREN(BAOKUOWOZIJI)DULIDIFANLEJIHUXIANGTONGDECUOWU。

2. 还是关键点相关的问题

排列5走势图JISHIZAISHANGMIANDEHANSHUBEIXIUFUZHIHOU,RENGRANCUNZAIWEIXIAN。XIANZAIGENGDUODESHIYUYI,ERBUJINJINSHIYIDUANDAIMA。

排列5走势图JIASHEXUYAOYONGLIANGZHISHOUZHANGLAIZENGQIANGTUXIANG。KANQILAIHENANQUAN:SHOUSHIZUO,YOUFANZHUAN。

排列5走势图DANSHIDENGDENG!WOMENDUIGUANJIANDIANDEYUYIBINGBUHENLEJIE。RUGUOZHEIGEGUANJIANDIANDEYISISHIZHEIYANGDE:

ZHEIYIWEIZHEZENGQIANGSHIJISHANGGAIBIANLEYUYI:ZUOBIANCHENGYOU,YOUBIANCHENGZUO,DANWOMENBUJIAOHUANSHUZUZHONGDEGUANJIANDIANSUOYIN。TAHUIJIXUNLIANDAILAIDALIANGDEZAOYINHEGENGZAOGAODEDULIANG。

WOMENYINGGAIXIQUYIGEJIAOXUN:

排列5走势图· ZAIYINGYONGZENGQIANGHUOQITAHUASHAODEGONGNENGZHIQIAN,LEJIEBINGKAOLVSHUJUJIEGOUHEYUYI

· BAOCHINIDESHIYANYUANZIXING:TIANJIAYIGEXIAODEBIANHUA(LIRUYIGEXINDEBIANHUAN),JIANCHATARUHEJINXING,RUGUOFENSHUTIGAOCAIJIAJINQU。

3. 编写自己的损失函数

SHUXIYUYIFENGEWENTIDERENKENENGZHIDAOIoUZHIBIAO。BUXINGDESHI,WOMENBUNENGZHIJIEYONGSGDLAIYOUHUATA,SUOYICHANGYONGDEFANGFASHIYONGKEWEISUNSHIHANSHULAIJINSITA。

排列5走势图KANQILAIBUCUO,WOMENXIANZUOGEXIAODEJIANCHA:

ZAI x1ZHONG,WOMENJISUANLEYIXIEYUground truthWANQUANBUTONGDEDONGXIDESUNSHI,ER x2ZESHIFEICHANGJIEJINground truthDEDONGXIDEJIEGUO。WOMENYUJI x1HUIHENDA,YINWEIYUCESHICUOWUDE, x2YINGGAIJIEJINYULING。ZENMELE?

SHANGMIANDEHANSHUSHIDUImetricDEYIGEHENHAODEJINSI。metricBUSHIYIZHONGSUNSHI:TATONGCHANG(BAOKUOZHEIZHONGQINGKUANG)YUEGAOYUEHAO。DANGWOMENSHIYONGSGDLAIZUIXIAOHUASUNSHISHI,WOMENYINGGAISHIYONGYIXIEXIANGFANDEDONGXI:

排列5走势图这些问题可以从两个方面来确定:

· BIANXIEYIGEDANYUANCESHI,JIANCHASUNSHIDEFANGXIANG:XINGSHIHUADEQIWANG,GENGJIEJINground truthYINGGAISHUCHUGENGDIDESUNSHI。

· YUNXINGYIGEJIANQUANDEJIANCHA,RANGNIDEMOXINGZAIDANGEbatchZHONGGUONIHE。

4. 当我们使用Pytorch的时候

排列5走势图JIASHEYOUYIGEYUXIANXUNLIANHAODEMOXING,KAISHIZUOinfer。

排列5走势图ZHEIGEDAIMAZHENGQUEMA?YEXU!ZHEIQUESHISHIYONGYUMOUXIEMOXING。LIRU,DANGMOXINGMEIYOUdropoutHUOnormCENG,RU torch.nn.BatchNorm2d。HUOZHEDANGMOXINGXUYAOWEIMEIGETUXIANGSHIYONGSHIJIDEnormTONGJILIANGSHI(LIRU,XUDUOJIYUpix2pixDEJIAGOUXUYAOTA)。

排列5走势图DANSHIDUIYUDADUOSHUJISUANJISHIJUEYINGYONGCHENGXULAISHUO,DAIMAHULVELEYIXIEZHONGYAODEDONGXI:QIEHUANDAOPINGGUMOSHI。

排列5走势图RUGUOSHITUJIANGDONGTAIPyTorchTUZHUANHUANWEIJINGTAIPyTorchTU,ZHEIGEWENTIHENRONGYISHIBIE。 torch.jitYONGYUZHEIZHONGZHUANHUAN。

JIANDANDEXIUFUYIXIA:

ZAIZHEIZHONGQINGKUANGXIA, torch.jit.traceJIANGMOXINGYUNXINGJICIBINGBIJIAOJIEGUO。ZHEILIDECHABIESHIKEYIDE。

RANER torch.jit.traceZAIZHEILIBUSHIWANNENGYAO。ZHEISHIYIZHONGYINGGAIZHIDAOHEJIZHUDEXIWEICHABIE。

5. 复制粘贴的问题

HENDUODONGXIDOUSHICHENGDUICUNZAIDE:XUNLIANHEYANZHENG、KUANDUHEGAODU、WEIDUHEJINGDU……

排列5走势图BUJINJINSHIWOFANLEYUCHUNDECUOWU。LIRU,ZAIFEICHANGLIUXINGDEalbumentationsKUYEYOUYIGELEISIDEBANBEN。

BIEDANXIN,YIJINGXIUGAIHAOLE。

RUHEBIMIAN?BUYAOFUZHIHEZHANTIEDAIMA,JINLIANGYIBUXUYAOFUZHIHEZHANTIEDEFANGSHIBIANXIEDAIMA。


6. 合适的数据类型

排列5走势图RANGWOMENBIANXIEYIGEXINDEZENGQIANG:

排列5走势图TUXIANGYIBEIGENGGAI。ZHEISHIWOMENSUOQIWANGDEMA?NG,YEXUTAGAIBIANDETAIDUOLE。

排列5走势图ZHEILIYOUYIGEWEIXIANDECAOZUO:JIANG float32 ZHUANHUANWEI uint8。TAKENENGHUIDAOZHIYICHU:

KANQILAIHAODUOLE,SHIBA?

排列5走势图SHUNBIANSHUOYIJU,HAIYOUYIZHONGFANGFAKEYIBIMIANZHEIGEWENTI:BUYAOZHONGXINFAMINGLUNZI,BUYAOCONGTOUKAISHIBIANXIEZENGQIANGDAIMABINGSHIYONGXIANYOUDEKUOZHAN: albumentations.augmentations.transforms.GaussNoise。

WOCENGJINGZUOGUOLINGYIGETONGYANGQIYUANDEbug。

ZHEILICHULESHENMEWENTI?SHOUXIAN,YONGSANCICHAZHIDIAOZHENGYANMODEDAXIAOSHIYIGEHUAIZHUYI。TONGYANGDEWENTI float32DAO uint8:SANCICHAZHIKEYISHUCHUZHIDAYUSHURU,ZHEIHUIDAOZHIYICHU。

排列5走势图WOZAIZUOKESHIHUADESHIHOUFAXIANLEZHEIGEWENTI。ZAINIDEXUNLIANXUNHUANZHONGDAOCHUFANGZHIDUANYANYESHIYIGEHAOZHUYI。

7. 拼写错误

排列5走势图JIASHEXUYAODUIQUANJUANJIWANGLUO(RUYUYIFENGEWENTI)HEYIGEJUDADETUXIANGJINXINGTUILI。GAITUXIANGSHIRUCIJUDA,MEIYOUJIHUIBATAFANGZAINIDEGPUZHONG,TAKEYISHIYIGEYILIAOHUOWEIXINGTUXIANG。

ZAIZHEIZHONGQINGKUANGXIA,KEYIJIANGTUXIANGFENGECHENGWANGGE,DULIDIDUIMEIYIKUAIJINXINGTUILI,ZUIHOUHEBING。CIWAI,YIXIEYUCEJIAOCHAKENENGYOUZHUYUPINGHUABIANJIEFUJINDEartifacts。

YOUYIGEFUHAOSHURUCUOWU,DAIMADUANZUGOUDA,KEYIHENRONGYIDIZHAODAOTA。WOHUAIYIJINJINTONGGUODAIMAJIUNENGKUAISUSHIBIETA。DANSHIHENRONGYIJIANCHADAIMASHIFOUZHENGQUE:

排列5走势图XIAMIANSHI __call__FANGFADEZHENGQUEBANBEN:

RUGUONIRENGRANBUZHIDAOWENTICHUZAINALI,QINGZHUYI weights[a:b,c:d,:]+=1ZHEIYIXING。

8. Imagenet归一化

DANGYIGERENXUYAOJINXINGZHUANYIXUEXISHI,YONGXUNLIANImagenetSHIDEFANGFAJIANGTUXIANGGUIYIHUATONGCHANGSHIYIGEHAOZHUYI。

RANGWOMENSHIYONGWOMENYIJINGSHUXIDEalbumentationsKU。

XIANZAISHISHIHOUXUNLIANYIGEWANGLUOBINGDUIDANGETUXIANGJINXINGGUODUNIHELE——ZHENGRUWOSUOTIDAODE,ZHEISHIYIZHONGHENHAODEDIAOSHIJISHU:

QULVKANQILAIHENHAO,DANSHIJIAOCHASHANGDESUNSHIZHI-300SHIBUKEYULIAODE。SHISHENMEWENTI?

GUIYIHUACHULITUXIANGXIAOGUOHENHAO,DANSHImaskMEIYOU:XUYAOSHOUDONGSUOFANGDAO [0,1]。

XUNLIANXUNHUANDEJIANDANYUNXINGSHIDUANYAN(LIRU assertmask.max()<=1HUIHENKUAIJIANCEDAOWENTI。TONGYANG,YEKEYISHIDANYUANCESHI。

更多资讯