Giter Club home page Giter Club logo

resnet-zap50k's Introduction

resnet-zap50k

Resnet based model for the Zappos50K dataset http://vision.cs.utexas.edu/projects/finegrained/utzap50k/ . It does classification on both categories and colors. It also lets you extract intermediate features.

Requirements

You need torch to run this code. You will also need a bunch of packages.

$ luarocks install nngraph
$ luarocks install csvigo
$ luarocks install optim
$ luarocks install nn
$ luarocks install pprint
$ luarocks install manifold
$ luarocks install cURL
$ luarocks install cjson
$ luarocks install hdf5

How to run the code

Train:

luajit main.lua -dataset shoes2

Create intermediate features (vectors from the last layer of the network):

luajit main.lua -restore 1 -dataset shoes2 -confidence 1

resnet-zap50k's People

Contributors

marcbelmont avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

resnet-zap50k's Issues

cURL

rzai@rzai00:~/resnet-zap50k$ luarocks install cURL
Installing https://raw.githubusercontent.com/torch/rocks/master/curl-0.1-0.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/curl-0.1-0.rockspec... switching to 'build' mode
Cloning into 'curl'...
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 6 (delta 1), reused 4 (delta 1), pack-reused 0
Receiving objects: 100% (6/6), done.
Resolving deltas: 100% (1/1), done.
Checking connectivity... done.
Updating manifest for /home/rzai/torch/install/lib/luarocks/rocks
curl 0.1-0 is now built and installed in /home/rzai/torch/install/ (license: BSD)

rzai@rzai00:/resnet-zap50k$ th main.lua -dataset shoes2
/home/rzai/torch/install/bin/luajit: /home/rzai/torch/install/share/lua/5.1/trepl/init.lua:384: module 'cURL' not found:No LuaRocks module found for cURL
no field package.preload['cURL']
no file '/home/rzai/.luarocks/share/lua/5.1/cURL.lua'
no file '/home/rzai/.luarocks/share/lua/5.1/cURL/init.lua'
no file '/home/rzai/torch/install/share/lua/5.1/cURL.lua'
no file '/home/rzai/torch/install/share/lua/5.1/cURL/init.lua'
no file './cURL.lua'
no file '/home/rzai/torch/install/share/luajit-2.1.0-beta1/cURL.lua'
no file '/usr/local/share/lua/5.1/cURL.lua'
no file '/usr/local/share/lua/5.1/cURL/init.lua'
no file '/home/rzai/.luarocks/lib/lua/5.1/cURL.so'
no file '/home/rzai/torch/install/lib/lua/5.1/cURL.so'
no file '/home/rzai/torch/install/lib/cURL.so'
no file './cURL.so'
no file '/usr/local/lib/lua/5.1/cURL.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/home/rzai/torch/install/share/lua/5.1/trepl/init.lua:384: in function 'require'
main.lua:6: in main chunk
[C]: in function 'dofile'
...rzai/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
rzai@rzai00:
/resnet-zap50k$
rzai@rzai00:~/resnet-zap50k$

rzai@rzai00:~/resnet-zap50k$ luarocks list
Warning: Failed loading manifest for /home/rzai/.luarocks/lib/luarocks/rocks: /home/rzai/.luarocks/lib/luarocks/rocks/manifest: No such file or directory

Installed rocks:

argcheck
scm-1 (installed) - /home/rzai/torch/install/lib/luarocks/rocks

class
scm-1 (installed) - /home/rzai/torch/install/lib/luarocks/rocks

csvigo
scm-1 (installed) - /home/rzai/torch/install/lib/luarocks/rocks

cudnn
scm-1 (installed) - /home/rzai/torch/install/lib/luarocks/rocks

cunn
scm-1 (installed) - /home/rzai/torch/install/lib/luarocks/rocks

curl
0.1-0 (installed) - /home/rzai/torch/install/lib/luarocks/rocks

what about the dataset?

rzai@rzai00:~/prj/resnet-zap50k$ th main.lua -dataset shoes2 2>&1 | tee yknote---log
/home/rzai/torch/install/bin/luajit: /home/rzai/torch/install/share/lua/5.1/csvigo/File.lua:78: data/multi-training.csv: No such file or directory
stack traceback:
[C]: in function 'error'

i don't find the multi-training.csv in UT Zappos50K dataset

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.