microsoft / VoTT

Visual Object Tagging Tool: An electron app for building end to end Object Detection Models from Images and Videos.
MIT License
4.29k stars 837 forks source link

If you move files, you can never get back to a functioning state #1038

Open thepian opened 3 years ago

thepian commented 3 years ago

Describe the bug If you reorganise your image locations and change the path in the vott file, it will be overwritten back to the previous state once opened

I found the you have to load the vott file via open local project, not the recent projects

To Reproduce Steps to reproduce the behavior:

  1. Label images
  2. Close the app
  3. Move the images
  4. Update paths in the vott file directly
  5. Open the project again with VoTT
  6. The vott file is now changed with paths reset to the previous value

Expected behavior The images should be visible in VoTT The vott file should remain unchanged

Screenshots

Screenshot 2021-01-23 at 19 28 36

Desktop (please complete the following information):

marireeves commented 3 years ago

I have this problem too. I ran out of disk space on my Azure VM, then had to add a disk, move the photos, then I deleted the old disk. I went into Vott to try and re-map the connections, but it no longer can find the already viewed assets. I get Unable to load asset. I'm guessing what's going on under the hood is that Vott is re-mapping the already tagged and viewed images to a different connection than the input connection or the output connection, but I'm unable to manage or reset that kind of intermediate step? Can you help? I had a collaborator label 1800 photos, and didn't get all the way through the export before my disk filled up. So I don't want the data to be lost.

Windows Azure DSVM - Vott version 2.2.0

lukasalexanderweber commented 3 years ago

I had the same issue:

In the Vott und Asset Files the image paths are stored as absolute path and encoded as MD5 hash e.g.

file:C:/Vott_Input/BloodImage_00004.png

goes to

3b9d2918b5890923c699113bac4d2aa3

https://www.md5hashgenerator.com/

If the Pfad changes, you have to edit the Projekt. To update the paths and hashes use.

https://github.com/cnrmck/update-vott-assets/blob/master/update_vott_assets.py

Thats an functionality which would be great if it can be implemented in Vott itself, since many people using Vott have Issues with it

mattroos commented 3 years ago

I'm a new VoTT user, working with a project on my local machine. One of my first questions was/is... "how can I copy or move this project to another machine?" Because of the absolute paths in the .vott and asset.json files, it seems that there is no easy way to do this. And if I understand this issue thread, there is no way to do it whatsoever. Am I incorrect? If not, what are the steps that need to be taken to copy a project to a different machine, with data stored in a different path location?

lukasalexanderweber commented 3 years ago

You can do this with this script: https://github.com/cnrmck/update-vott-assets/blob/master/update_vott_assets.py But there is no native way to do it in Vott

sannnyu commented 3 years ago

you can just find .vott (project file) and open with Notepad,find your Image file name and delete that phrase of json。reopen the project,you gonna solve it。

MarsTechHAN commented 3 years ago

Same problem... If I ask others to annotate the file, then the path is not the same, and I cannot open it on my machine. I would prefer vott to implement a "relative path to .vott file", and disable the encryption for ease editing when using localFileSystemProxy.

sannnyu commented 3 years ago

Same problem... If I ask others to annotate the file, then the path is not the same, and I cannot open it on my machine. I would prefer vott to implement a "relative path to .vott file", and disable the encryption for ease editing when using localFileSystemProxy.

I gave up using VOTT,you can use Baidu EasyData or Roboflow to mark your datasets .