The visualize
folder contains 1) pickle_to_imagerank.py to convert tag relevance learning results stored in pickle files to image ranks per test tag, and 2) webdemo to show the image ranks in html format.
- web.py: sudo easy_install web.py
- see example-scripts.sh for generating image ranks given a list of pickle files
- go into webdemo, modify config.json accordingly
- start a web server by
python main.py 9090
, which listens to port 9090.
For a given test tag, say rainbow
,
- Images ranked in terms of tag relevance: http://localhost:9090/?query=rainbow&tagrel=1
- Images labeled with the test tag: http://localhost:9090/?query=rainbow&tagrel=0