Discriminatively Trained Deformable Part Models + Windows(二)

來源:互聯網
上載者:User

昨天把基本的demo跑通了,接下來順理成章要學會訓練了。先跑通原作者的步驟,再考慮訓練自己的模型

參考的還是昨天兩篇,另外加一片:

1. pozen

http://blog.csdn.net/pozen/article/details/7103412

2. dreamd1987

http://blog.csdn.net/dreamd1987/article/details/7399151

3. liuwucn

http://hi.baidu.com/liuwucn/blog/item/77f3d2cf264bfae252664fb8.html

前人種樹,後人copy。總結下我的步驟:

1。下載VOCdevkit和voc2011 dataset (http://pascallin.ecs.soton.ac.uk/challenges/VOC/voc2011/)

data是個1.7G的tar file,Windows下直接用winrar解壓還給搞死機了,不給力呀微軟,微微有點軟

2。修改global.m。上面3說的比較具體。

另外tmpdir要改,如果資料不在VOCdevkit的目錄下還要改VOCinit.m中的路徑,源檔案中注釋很清楚

3。修改train.m和rewritedat.m

unix()--->system()

cp--->copy
./learn--->learn

unix(['rm ' oldfile]) --->delete(oldfile)

unix(['mv ' datfile ' ' oldfile])--->movefile(datfile, oldfile)

(執行上面這條時總是說datfile已經被佔用,在資源管理員裡也改/刪不了說被matlab佔用,折騰了幾個小時,自己好了,無語)

4。procid.m檔案中的“/”修改為“\"

5。編譯learn.cc

直接copy dreamd1987改好的code,easy!

6。pozen說的“rewritedat.m中還會出現下標越界的情況”

暫時沒有改,訓練似乎目前還沒有問題

pascal('person', 3);  跑起了

訓練真的很漫長。。。。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.