Coder Social home page Coder Social logo

Comments (5)

SoroushOskouei avatar SoroushOskouei commented on June 12, 2024 1

I don't think the disappearing issue is related to the spaces.
That occurs in filenames without any spaces and also sometimes does not even occur for filenames with spaces.
BUT If the filename has a space at the end of it, the program will crash.
Because when it creates the folder for saving the results, the space at the end will be ignored so it can not find the folder with the name including the space at the end.

from fast-pathology.

andreped avatar andreped commented on June 12, 2024

This is likely an issue if the filename has a space anywhere, not just at the end.

A fix in FAST was added to handle full paths with space in them, such that FAST POs like fast.WholeSlideImageImporter can read these files, but we have likely not yet added the same fix to FP yet.

After inference, the result will be moved to the Project folder, and as it fails to use this filename, for whatever reason, the result won't be loaded correctly. AFAIK, right after inference, the prediction might actually just disappear from the viewer. Is that correct, @SoroushOskouei?

from fast-pathology.

SoroushOskouei avatar SoroushOskouei commented on June 12, 2024

I think when you create a folder that has a name with spaces at the end the OS will ignore them. For example "folder " will be created as "folder". This does not happen if the space is in the middle. That is why FP cannot find it when the space is at the end.

from fast-pathology.

andreped avatar andreped commented on June 12, 2024

I think when you create a folder that has a name with spaces at the end the OS will ignore them.

That's surprising to me. I just tried on macOS, and I could not reproduce this issue. This I tried outside FP, just on my macbook. Is this a Windows-issue maybe? Or Qt-related?

Could you try just making a folder through the Windows terminal, like so: mkdir "test_dir "? Note the added space " ".

from fast-pathology.

mhoibo avatar mhoibo commented on June 12, 2024

@andreped and I were able to reproduce this issue. For an image with space at the end of the filename (e.g., "some_image .svs"), the space is lost inside the Project when making the result directory, and thus after inference, the segmentation vanishes. Result is also not stored, likely because FP was unable to find an existing path to store the result.

@smistad

from fast-pathology.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.