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

No such file or directory: 'mirror-youtube-clip-videoonly/images #252

Open
Reza-Noei opened this issue Jan 1, 2023 · 2 comments
Open

No such file or directory: 'mirror-youtube-clip-videoonly/images #252

Reza-Noei opened this issue Jan 1, 2023 · 2 comments

Comments

@Reza-Noei
Copy link

Hi,
I'm trying to run quick start samples (mirror-youtube-clip-videoonly). It took me about 3 days to resolve runtime errors. Until I stopped in following error. I had no more idea to correct it:

[run] python3 apps/preprocess/extract_image.py /content/mirror-youtube-clip-videoonly
[run] python3 apps/calibration/create_blank_camera.py /content/mirror-youtube-clip-videoonly
Traceback (most recent call last):
  File "/content/EasyMocap/apps/calibration/create_blank_camera.py", line 24, in <module>
    subs = sorted(os.listdir(join(args.path, 'images')))
FileNotFoundError: [Errno 2] No such file or directory: '/content/mirror-youtube-clip-videoonly/images'
[Config] merge from parent file: config/data/multivideo.yml
[run] python3 apps/fit/fit.py --cfg_model config/model/smpl.yml --cfg_data config/data/multivideo-mirror.yml --cfg_exp config/fit/1v1p-mirror-direct.yml --opt_data "args.path" "/content/mirror-youtube-clip-videoonly" "args.out" "/content/mirror-youtube-clip-videoonly/output-smpl-3d" "args.camera" "/content/mirror-youtube-clip-videoonly" "args.writer.render.scale" "0.5"
[Config] merge from parent file: config/data/multivideo.yml
Key is not in the template: args.out
-> [Loading config/data/multivideo-mirror.yml]:  25.9ms
Traceback (most recent call last):
  File "/content/EasyMocap/apps/fit/fit.py", line 33, in <module>
    dataset = load_object(cfg_data.module, cfg_data.args)
  File "/content/EasyMocap/easymocap/config/baseconfig.py", line 67, in load_object
    obj = getattr(module, name)(**extra_args, **module_args)
  File "/content/EasyMocap/easymocap/datasets/base.py", line 511, in __init__
    super().__init__(**kwargs)
  File "/content/EasyMocap/easymocap/datasets/base.py", line 399, in __init__
    super().__init__(**kwargs)
  File "/content/EasyMocap/easymocap/datasets/base.py", line 222, in __init__
    self.subs = self.check_subs(path, subs)
  File "/content/EasyMocap/easymocap/datasets/base.py", line 256, in check_subs
    subs = sorted(os.listdir(join(path, self.image_args['root'])))
FileNotFoundError: [Errno 2] No such file or directory: '/content/mirror-youtube-clip-videoonly/images'
Traceback (most recent call last):
  File "/content/EasyMocap/apps/demo/mocap.py", line 394, in <module>
    workflow(args.work, args)
  File "/content/EasyMocap/apps/demo/mocap.py", line 340, in workflow
    append_mocap_flags(path, output, cfg_data, cfg_model, cfg_exp, workflow.fit, args)
  File "/content/EasyMocap/apps/demo/mocap.py", line 277, in append_mocap_flags
    filenames = os.listdir(outdir)
FileNotFoundError: [Errno 2] No such file or directory: '/content/mirror-youtube-clip-videoonly/output-smpl-3d/smplmesh'

My runtime environment is a google colab notebook, because I had several problems with Pickle in my ubuntu which leads me to *.pkl file loading issue. I will open up another issue about the pickle error.

Please help me on this 😢
I supposed that it takes me some hours but my manager is angry by now (he is waiting for my results 🤦‍♂️).

tnx

@chingswy
Copy link
Contributor

chingswy commented Jan 2, 2023

Hello, can you check the path /content/mirror-youtube-clip-videoonly?

@Reza-Noei
Copy link
Author

Reza-Noei commented Jan 6, 2023

I checked the path /content/mirror-youtube-clip-videoonly; its already exists.
We double checked it on local machine (path /mnt/f/alireza-download/mirror-youtube-clip-videoonly exist here also) and here is my screenshot:

image

I think this folder (./images) should be created at runtime. because it's not a part of your dataset directory and I saw some directories and images are being generated at runtime. so there might be a problem in previous lines of code; there is no significant error for this.

I can share my google colab notebook (if you send me an email) and I can send my package versions if its needed.

tnx

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

2 participants