Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing the trained model failed on Windows #82

Open
sugan89 opened this issue Mar 18, 2024 · 0 comments
Open

Testing the trained model failed on Windows #82

sugan89 opened this issue Mar 18, 2024 · 0 comments

Comments

@sugan89
Copy link

sugan89 commented Mar 18, 2024

I trained a 3D model and I tried to evaluate the model on one of the images in the CLI but I got the following error,

  File "\\?\C:\Users\ssivagur\Anaconda3\envs\omnipose\Scripts\omnipose-script.py", line 33, in <module>
    sys.exit(load_entry_point('omnipose', 'console_scripts', 'omnipose')())
  File "c:\users\ssivagur\omnipose\omnipose\__main__.py", line 9, in main
    cellpose_omni_main(args)
  File "c:\users\ssivagur\omnipose\cellpose_omni\__main__.py", line 314, in main
    io.save_masks(image, masks, flows, image_name, png=args.save_png, tif=args.save_tif,
  File "c:\users\ssivagur\omnipose\cellpose_omni\io.py", line 514, in save_masks
    save_masks(image, mask, flow, file_name, png=png, tif=tif, suffix=suffix, dir_above=dir_above,
  File "c:\users\ssivagur\omnipose\cellpose_omni\io.py", line 593, in save_masks
    fig.savefig(os.path.join(cpdir,basename + '_cp_output' + suffix + '.png'), dpi=300)
  File "C:\Users\ssivagur\Anaconda3\envs\omnipose\lib\site-packages\matplotlib\figure.py", line 3390, in savefig
    self.canvas.print_figure(fname, **kwargs)
  File "C:\Users\ssivagur\Anaconda3\envs\omnipose\lib\site-packages\matplotlib\backends\backend_qtagg.py", line 75, in print_figure
    super().print_figure(*args, **kwargs)
  File "C:\Users\ssivagur\Anaconda3\envs\omnipose\lib\site-packages\matplotlib\backend_bases.py", line 2193, in print_figure
    result = print_method(
  File "C:\Users\ssivagur\Anaconda3\envs\omnipose\lib\site-packages\matplotlib\backend_bases.py", line 2043, in <lambda>
    print_method = functools.wraps(meth)(lambda *args, **kwargs: meth(
  File "C:\Users\ssivagur\Anaconda3\envs\omnipose\lib\site-packages\matplotlib\backends\backend_agg.py", line 497, in print_png
    self._print_pil(filename_or_obj, "png", pil_kwargs, metadata)
  File "C:\Users\ssivagur\Anaconda3\envs\omnipose\lib\site-packages\matplotlib\backends\backend_agg.py", line 446, in _print_pil
    mpl.image.imsave(
  File "C:\Users\ssivagur\Anaconda3\envs\omnipose\lib\site-packages\matplotlib\image.py", line 1656, in imsave
    image.save(fname, **pil_kwargs)
  File "C:\Users\ssivagur\Anaconda3\envs\omnipose\lib\site-packages\PIL\Image.py", line 2436, in save
    fp = builtins.open(filename, "w+b")
OSError: [Errno 22] Invalid argument: 'C:\\Users\\ssivagur\\Documents\\Projects\\DBP\\Doe\\test_data\\:_cp_output.png'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant