vatic icon indicating copy to clipboard operation
vatic copied to clipboard

Vatic in offline mode

Open ming8924 opened this issue 8 years ago • 22 comments

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

ming8924 avatar Mar 10 '16 07:03 ming8924

Have the same problem here as well :-(

georgeplaton7 avatar Mar 30 '16 17:03 georgeplaton7

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

junjuew avatar Apr 14 '16 01:04 junjuew

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.

gsikheria avatar May 05 '16 10:05 gsikheria

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

junjuew avatar May 05 '16 20:05 junjuew

@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

gsikheria avatar May 06 '16 05:05 gsikheria

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

junjuew avatar May 06 '16 14:05 junjuew

Thanks @Jamesjue

gsikheria avatar May 12 '16 12:05 gsikheria

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 </VirtualHost>

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

Thanks.

OmarMAmin avatar May 18 '16 16:05 OmarMAmin

@OmarMAmin Try This

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

Then Restart apache2

sudo apache2ctl graceful

ymm8505 avatar May 19 '16 07:05 ymm8505

@OmarMAmin

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

gsikheria avatar May 19 '16 07:05 gsikheria

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

OmarMAmin avatar May 19 '16 12:05 OmarMAmin

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-x86_64-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

gsikheria avatar May 24 '16 15:05 gsikheria

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

OmarMAmin avatar May 24 '16 17:05 OmarMAmin

@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

junjuew avatar May 25 '16 18:05 junjuew

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 avatar May 26 '16 06:05 gsikheria

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.

gsikheria avatar May 26 '16 07:05 gsikheria

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

mobooya avatar Sep 25 '16 00:09 mobooya

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

gsikheria avatar Sep 25 '16 04:09 gsikheria

Thank you!

On Sat, Sep 24, 2016, 9:24 PM Gunjan kumar sikheria < [email protected]> 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 .

mobooya avatar Sep 25 '16 04:09 mobooya

@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

otkupjnoz avatar Nov 08 '16 08:11 otkupjnoz

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.

AkarshNKolekar avatar Jan 19 '17 06:01 AkarshNKolekar

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

otkupjnoz avatar Jan 19 '17 17:01 otkupjnoz