Skip to content

FileNotFoundError when trying to extract outlier frames #2279

@ckKLI

Description

@ckKLI

Is there an existing issue for this?

  • I have searched the existing issues

Bug description

I have analyzed some videos. The labeling was not optimal yet, so I tried to extract outlier frames. This did not work and I got an error message.

Operating System

Windows 11

DeepLabCut version

DLC version 2.3.5

DeepLabCut mode

single animal

Device type

NVIDIA GeForce RTX 4050

Steps To Reproduce

No response

Relevant log output

Python 3.8.17 | packaged by conda-forge | (default, Jun 16 2023, 07:01:59) [MSC v.1929 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.12.2 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import deeplabcut
Loading DLC 2.3.5...

In [2]: config_path = "D:/DeepLabCut/Snail 4 Feb 2023-Carina Kronsteiner-2023-02-08/config.yaml"

In [3]: deeplabcut.extract_outlier_frames(config_path, ["D:/Schnecken Verhalten Videos/2 Mittelalt 2 Jung 1 27.11.-12.1
   ...: 2.19/27.11.19 Mittelalt 2 Jung 1 vor Konditionierung/einzelne Videos/S43.mp4"], outlieralgorithm="manual")
Installed qt6 event loop hook.

Traceback (most recent call last):
  File "C:\Users\Carina\anaconda3\envs\DEEPLABCUT\lib\site-packages\napari_deeplabcut\_widgets.py", line 281, in _extrae
    _write_image(frame, str(output_path))
  File "C:\Users\Carina\anaconda3\envs\DEEPLABCUT\lib\site-packages\napari_deeplabcut\_writer.py", line 85, in _write_ie
    imsave(
  File "C:\Users\Carina\anaconda3\envs\DEEPLABCUT\lib\site-packages\skimage\io\_io.py", line 143, in imsave
    return call_plugin('imsave', fname, arr, plugin=plugin, **plugin_args)
  File "C:\Users\Carina\anaconda3\envs\DEEPLABCUT\lib\site-packages\skimage\io\manage_plugins.py", line 205, in call_pln
    return func(*args, **kwargs)
  File "C:\Users\Carina\anaconda3\envs\DEEPLABCUT\lib\site-packages\imageio\v3.py", line 139, in imwrite
    with imopen(
  File "C:\Users\Carina\anaconda3\envs\DEEPLABCUT\lib\site-packages\imageio\core\imopen.py", line 113, in imopen
    request = Request(uri, io_mode, format_hint=format_hint, extension=extension)
  File "C:\Users\Carina\anaconda3\envs\DEEPLABCUT\lib\site-packages\imageio\core\request.py", line 247, in __init__
    self._parse_uri(uri)
  File "C:\Users\Carina\anaconda3\envs\DEEPLABCUT\lib\site-packages\imageio\core\request.py", line 412, in _parse_uri
    raise FileNotFoundError("The directory %r does not exist" % dn)
FileNotFoundError: The directory 'D:\\Schnecken Verhalten Videos\\2 Mittelalt 2 Jung 1 27.11.-12.12.19\\27.11.19 Mittelt

If you suspect this is an IPython 8.12.2 bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at [email protected]

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    %config Application.verbose_crash=True

Anything else?

No response

Code of Conduct

Metadata

Metadata

Assignees

Labels

GUIissues relating to GUIbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions