Cardio-AI / endovis-ml

Visualization of dataset splits for surgical phase and instrument recognition
https://cardio-ai.github.io/endovis-ml/
MIT License
7 stars 0 forks source link

Not able to run the application #5

Open Yipinggggg opened 5 months ago

Yipinggggg commented 5 months ago

Thanks for the awesome work!

I uploaded my datasets and followed all the instructions, but after clicking the visualize data, it seems it keeps running forever. Could you help please?

GeorgiiKos commented 4 months ago

Thank you for pointing this out. After some testing, I noticed inconsistencies in the data loading code that might have caused issues when loading datasets other than the ones we tested. I have fixed these inconsistencies and also updated the README file to provide clearer instructions. The changes have been pushed to the repository and are available in the web version as well. I apologize for the inconvenience and delayed response. Please let me know if the issue persists.

Generally, the data loading process is unfortunately inherently fragile because the application has to process multiple files. This requires all files to be consistent otherwise the application cannot process them. Here is a quick summary of the requirements that the data should fulfill:

As an example, in order to load Cholec80 in our application, we transformed the dataset the following way:

  1. Copy phase and instrument annotation files to a single directory.
  2. Change delimiter from tabs to commas.
  3. Map textual phase labels to numbers (0-6).

I also provide screenshots of the Cholec80 dataset format, as well as the configuration form that work with our application, below.

screenshot1 screenshot2 screenshot3 screenshot4

This repository also contains a sample dataset that can serve as an example for the data format that the application expects. Furthermore, the application should log errors in the browser developer console (can be opened by pressing F12 on most browsers) that may provide insights into what is causing the problem.

I hope this helps, please let me know if the issue still persists. Also, please let me know if you are working with a publicly available dataset. In this case, I can offer to test the application with the dataset and provide a tailored guide or fix any bugs that may arise.

Yipinggggg commented 4 months ago

I assume the problem I had before arose from discontinuous surgery number. I just got it running!

Thanks a lot for the reply and the nice work!

GeorgiiKos commented 4 months ago

Glad to hear that! And thank you for pointing out a possible cause of the problem, I will look into it. In case you have suggestions for new features or encounter any further bugs, we will be happy to assist!