cvondrick / vatic

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

turkic publish offline mode outputs some rubbish links #28

Open manisoftwartist opened 9 years ago

manisoftwartist commented 9 years ago

When there is more than 1 video in the vatic database (ascertained turkic list), the turkic publish --offline options spews out invalid URLs. For instance, in my case, I had 2 videos (2 separate identifiers) in the vatic database. The tool outputs: http://localhost?id=1&hitId=offline http://localhost?id=2&hitId=offline http://localhost?id=3&hitId=offline http://localhost?id=16&hitId=offline http://localhost?id=17&hitId=offline

Of these, only the last 2 are valid. Trying to access the first 3 URLs in the browser just displays '"Downloading the video" 0%

drewm1980 commented 8 years ago

I am also trying to figure out how to actually launch turkic for the first time, offline.

turkic find

returns a bunch of links like yours that lead to a "Server Error" page.

turkic publish --offline doesn't do anything as far as I can tell.

aaman-ee commented 7 years ago

The issue lies in the database structure. This happens when you had previously loaded videos and deleted them. The next uploaded video will not have in the url id=1 but the incremental number of all the segments of all videos you have previously loaded (even deleted ones). For example, id=1 stands for the first segment of the first video you upload. since id is primary key for the table "jobs" you cannot reset it but goes incrementally. Try manually το change the id number or go to the output frame directory and count incrementally the segments of each video.

zesoft23 commented 7 years ago

I agree with the above. I believe the error occurs when a video is loaded without the 'offline' keyword but published with the 'offline' keyword. When that video is deleted the urlid counter is not properly adjusted and continues to include that deleted video. The accurate analogue in the database is groupid under vatic.turkic_hits Those id's should still correspond to the urlid's.

yang-fei commented 7 years ago

my problem is that it sends out many links. But none of them works. I load the video only once. And I use the option "--offline" for loading the publishing. Do you have any suggestion?

http://localhost/?id=85&hitId=offline http://localhost/?id=86&hitId=offline http://localhost/?id=87&hitId=offline http://localhost/?id=88&hitId=offline http://localhost/?id=89&hitId=offline http://localhost/?id=90&hitId=offline http://localhost/?id=91&hitId=offline http://localhost/?id=92&hitId=offline http://localhost/?id=93&hitId=offline http://localhost/?id=94&hitId=offline http://localhost/?id=95&hitId=offline http://localhost/?id=96&hitId=offline http://localhost/?id=97&hitId=offline http://localhost/?id=98&hitId=offline http://localhost/?id=99&hitId=offline http://localhost/?id=100&hitId=offline http://localhost/?id=101&hitId=offline http://localhost/?id=102&hitId=offline

@zesoft23 @aaman-ee