Cant open project image files and annotation

671 views
Skip to first unread message

Malcolm Lim

unread,
Apr 22, 2018, 2:39:14 AM4/22/18
to QuPath users

Hello

I am having issues opening annotate/ segmented/ detected images files on QuPath. The project folder and the image folder were moved from my PC to shared drive. 

Also I have annotated some images at home on my external hard disk, when I tried to open the project and image on another PC, Qupath is having problems probably because the external drive is F (at home) and is now G: in the lab. 



Pete

unread,
Apr 22, 2018, 2:48:50 AM4/22/18
to QuPath users
You should be able to manually update the image paths in your .qpproj file.  There is some more information at https://github.com/qupath/qupath/issues/114

micros...@gmail.com

unread,
Apr 22, 2018, 11:47:55 AM4/22/18
to QuPath users
And I think you can recreate the project pretty much anywhere.

Create new project folder
Import images from new location
Copy .qpdata files into new project's data directory

Unless you have been doing anything creative with the project file Pete mentioned, you should be good to go at that point.

If you want a mobile QuPath project folder (grab it and go to a new location), I think you need to store the images within the project folder...  though I am not 100% sure of that.

Malcolm Lim

unread,
Apr 22, 2018, 8:31:08 PM4/22/18
to QuPath users
Thank you so much guys!

I tried both methods which worked.

Pete's method is - Open project.qpproj file in a text editor, and then use 'Find & Replace' to change the directory (e.g. Replace "path": "G:\\  to  "path": "F:\\).


Astin Powers

unread,
Jun 18, 2018, 12:40:21 PM6/18/18
to QuPath users
Will I need to rewrite the paths every time I update the project? For example, I copy the project for someone and they continue to work on it and they then return the project to me will I need to re-do this process all over again? Also will I need to do this every time I save a back-up?

Pete

unread,
Jun 18, 2018, 1:24:41 PM6/18/18
to QuPath users
I'm not sure I understand the question fully.  The project.qpproj file contains the paths to the images; if you copy the project for someone else, then they will need to use a different project.qpproj file with the correct paths for them.

But you can have multiple such files in the same directory.  So you could have project_yours.qpproj that has all the paths for your images, and project_theirs.qpproj that has all their paths to the same images - both in the same project directory.  In the end, the more important stuff is in the 'data' subdirectory of the project, and this is based only on the file name (not the full path).  On your computer, you'd just drag project_yours.qpproj on top of QuPath to open the project with your paths, while they drag project_theirs.qpproj onto QuPath on their computer.  If the image names are the same, they will work off the same data.

For backups, I tend to select the entire project directory now and then and compress it into a zip file.

I hope that answers your question.  If not, I'd recommend trying things and reporting back if something specific doesn't work as you'd expect or want it to.  You can read more about projects at https://github.com/qupath/qupath/wiki/Project-structure

Reply all
Reply to author
Forward
0 new messages