cvondrick / vatic

Efficiently Scaling Up Video Annotation with Crowdsourced Marketplaces. IJCV 2012
http://mit.edu/vondrick/vatic/
MIT License
607 stars 255 forks source link

Vatic in offline mode #38

Open ming8924 opened 8 years ago

ming8924 commented 8 years ago

Hi, I have just got vatic to work in offline mode and am able to annotate the video segments. However, when I type turkic list --published it shows nothing. turkic list --stats shows 0/30 completed videos even though I have annotated some videos and save the work.

Also, I am wondering for the offline mode, do I have to enter the url every time I work on a video segments?

Thanks

georgeplaton7 commented 8 years ago

Have the same problem here as well :-(

junjuew commented 8 years ago

After digging into the code, I found the solution. In the object box shown as below, there is a check mark on the top right corner. After clicking that and click "save work" button, your video will be marked as done.

screenshot from 2016-04-13 21 53 54

For your second question, please see my answer in issue24

gsikheria commented 8 years ago

Hi @Jamesjue,

This check mark in object box, I'm not able to find in --offline mode. Is this online mode.? I want to track user in --offline mode. Is this possible.

junjuew commented 8 years ago

I'm running offline mode. You need to create an object first by clicking the add button, and then you'll see it

gsikheria commented 8 years ago

@Jamesjue , I'm also running in offline mode but I'm not able to see id, classify button, Tracking etc. Have you done any changes in code vvv

junjuew commented 8 years ago

A more well-maintained fork of vatic is here: https://github.com/johndoherty/vatic

gsikheria commented 8 years ago

Thanks @Jamesjue

OmarMAmin commented 8 years ago

I'm having an issue trying to run the offline-mode.

I want to run vatic on my personal pc, but i'm stuck in a small issue

after "turkic status --verify"

i got the following

Localhost: localhost

Testing access to Amazon Mechanical Turk... ERROR! Signature or access key missing Testing access to database server... OK Testing access to web server... ERROR! unknown url type: localhost/turkic/verify.html

I don't know what am i supposed to set in the config.py file

in config.py

localhost = "localhost"

in 000-default.conf

ServerName localhost <VirtualHost *:80>

DocumentRoot /home/cse2017/Desktop/Projects/vatic/public

WSGIScriptAlias /server /home/cse2017/Desktop/Projects/vatic/server.py CustomLog /var/log/apache2/access.log combined

but i can't get it running, could you please let me know how am i supposed to configure these file right ?

Thanks.

ymm8505 commented 8 years ago

@OmarMAmin Try This

cp /home/vatic/turkic/turkic/public/* /home/vatic/vatic/public/turkic

Then Restart apache2

sudo apache2ctl graceful

gsikheria commented 8 years ago

@OmarMAmin

Local host should be be define in 000-default.conf and config.py like localhost = "http://localhost"

OmarMAmin commented 8 years ago

Thank you so much, it fixes the issue, i got the following:

Localhost: http://localhost

Testing access to Amazon Mechanical Turk... ERROR! Signature or access key missing Testing access to database server... OK Testing access to web server... ERROR! HTTP Error 403: Forbidden

and i tried the following https://github.com/cvondrick/vatic/issues/17#issuecomment-203003980

and it fixed the issue and now i'm trying to use it.

Thanks all for your help

gsikheria commented 8 years ago

Hi @Jamesjue

As you have already install this version https://github.com/johndoherty/vatic of vatic. I'm facing some error. When it is comes to

cd vatic_tracking python setup.py install

running install running build running build_py running build_ext building 'cpptrack' extension gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/etruser/anaconda2/include/python2.7 -c cpptrack/cpptrack.cpp -o build/temp.linux-x86_64-2.7/cpptrack/cpptrack.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/etruser/anaconda2/include/python2.7 -c cpptrack/trackingmodule.cpp -o build/temp.linux-x86_64-2.7/cpptrack/trackingmodule.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/etruser/anaconda2/include/python2.7 -c cpptrack/CompressiveTracker.cpp -o build/temp.linux-x86_64-2.7/cpptrack/CompressiveTracker.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/etruser/anaconda2/include/python2.7 -c cpptrack/CompressiveTrackerModule.cpp -o build/temp.linux-x8664-2.7/cpptrack/CompressiveTrackerModule.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] cpptrack/CompressiveTrackerModule.cpp:5:40: error: ‘string’ has not been declared void compressivetrack(Rect initialBox, string basePath, ^ cpptrack/CompressiveTrackerModule.cpp: In function ‘void compressivetrack(cv::Rect, int, int, int, std::vectorcv::Rect&)’: cpptrack/CompressiveTrackerModule.cpp:11:42: error: invalid conversion from ‘int’ to ‘const char_’ [-fpermissive] getFrame(start, basePath, gray, false); ^ In file included from /usr/include/c++/4.8/string:53:0, from /usr/local/include/opencv2/core/cvstd.hpp:58, from /usr/local/include/opencv2/core/base.hpp:56, from /usr/local/include/opencv2/core.hpp:54, from /usr/local/include/opencv2/opencv.hpp:46, from cpptrack/trackingmodule.h:1, from cpptrack/CompressiveTrackerModule.cpp:1: /usr/include/c++/4.8/bits/basic_string.tcc:212:5: error: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const CharT, const _Alloc&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ [-fpermissive] basic_string<_CharT, _Traits, Alloc>:: ^ cpptrack/CompressiveTrackerModule.cpp:17:42: error: invalid conversion from ‘int’ to ‘const char’ [-fpermissive] getFrame(i, basePath, gray, false); ^ In file included from /usr/include/c++/4.8/string:53:0, from /usr/local/include/opencv2/core/cvstd.hpp:58, from /usr/local/include/opencv2/core/base.hpp:56, from /usr/local/include/opencv2/core.hpp:54, from /usr/local/include/opencv2/opencv.hpp:46, from cpptrack/trackingmodule.h:1, from cpptrack/CompressiveTrackerModule.cpp:1: /usr/include/c++/4.8/bits/basic_string.tcc:212:5: error: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const CharT, const _Alloc&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ [-fpermissive] basic_string<_CharT, _Traits, _Alloc>:: ^ error: command 'gcc' failed with exit status 1

I'd be very thankful if you can help

OmarMAmin commented 8 years ago

the problem in the file CompressiveTrackerModule.cpp in vatictracking folder

you need to change string into std::string and it'll compile with you

please let me know if you managed to get it working, as i couldn't, i'm stuck in the next step

https://github.com/cvondrick/vatic/issues/42

junjuew commented 8 years ago

@gsikheria I didn't encounter any problem compiling the module. I compiled it on ubuntu 14.04 with gcc 4.8.4 and cython -0.24

gsikheria commented 8 years ago

Hi @OmarMAmin , Thanks for help. I 'm able to compile now. For #42 Cross check all the packages by going into shell script "vatic-install-local.sh". Try to install each packages separately, then again run the script.

gsikheria commented 8 years ago

Hi @Jamesjue and @ming8924 ,

Since my above problem is solved but I stuck at "turkic setup --database"

Traceback (most recent call last): File "/home/etruser/.env/bin/turkic", line 4, in import('pkg_resources').run_script('turkic==0.2.5', 'turkic') File "/home/etruser/.env/local/lib/python2.7/site-packages/pkg_resources/init.py", line 719, in run_script self.require(requires)[0].run_script(script_name, ns) File "/home/etruser/.env/local/lib/python2.7/site-packages/pkg_resources/init.py", line 1504, in run_script exec(code, namespace, namespace) File "/home/etruser/.env/lib/python2.7/site-packages/turkic-0.2.5-py2.7.egg/EGG-INFO/scripts/turkic", line 12, in import cli File "/home/etruser/vatic/cli.py", line 7, in from turkic.cli import handler, importparser, Command, LoadCommand File "/home/etruser/.env/local/lib/python2.7/site-packages/turkic-0.2.5-py2.7.egg/turkic/cli.py", line 9, in import database File "/home/etruser/.env/local/lib/python2.7/site-packages/turkic-0.2.5-py2.7.egg/turkic/database.py", line 30, in engine = create_engine(config.database, pool_recycle = 3600) File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/init.py", line 386, in create_engine File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/strategies.py", line 75, in create File "build/bdist.linux-x86_64/egg/sqlalchemy/dialects/mysql/mysqldb.py", line 92, in dbapi ImportError: No module named MySQLdb

I've crossed checked I've python-mysqldb, sqlalchemy.

mobooya commented 8 years ago

Hi @gsikheria , im getting the same error "ImportError no module named mysql.db" How did you resolve it? Thanks

gsikheria commented 8 years ago

try this apt-get install python-mysqldb. If this not work check , sqlalchemy.

mobooya commented 8 years ago

Thank you!

On Sat, Sep 24, 2016, 9:24 PM Gunjan kumar sikheria < notifications@github.com> wrote:

try this apt-get install python-mysqldb. If this not work check , sqlalchemy.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cvondrick/vatic/issues/38#issuecomment-249401981, or mute the thread https://github.com/notifications/unsubscribe-auth/ABe6_8Js1HT25rLdcUyJzlxyZabR9-OYks5qtfdsgaJpZM4Htf0o .

otkupjnoz commented 7 years ago

@ming8924 can you explain how did you make vatic work in offline mode...

I am running this command

Turkic publish --offline

and there are links in the results but when I open those links it is not opening the GUI of vatic

AkarshNKolekar commented 7 years ago

Yep, even I'm not able to open the GUI for vatic after publishing it offline. How do we access the GUI? The link generated after turkic publish --offline gives a link like http://localhost?id=4&hitId=offline, but when i click on that, it shows "Server Error" on a black-grey screen.

otkupjnoz commented 7 years ago

@AkarshNKolekar when I used the steps given in one of the answers of issue #37 for installation it resolved my problem