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

"mask_valid" parameter #27

Open
kalyani7195 opened this issue Apr 9, 2023 · 5 comments
Open

"mask_valid" parameter #27

kalyani7195 opened this issue Apr 9, 2023 · 5 comments

Comments

@kalyani7195
Copy link

Hi! Thanks for the great work! 💯
I am a bit confused about this parameter the in yaml file --
use_mask_valid: True # Requires "task" mask_valid to be saved to disk

When I set that to False --I get the following error while
fine-tuning a ViT based model on the NYU dataset--

Original Traceback (most recent call last):
  File "/gscratch/sciencehub/kmarathe/miniconda3/envs/py38/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 302, in _worker_loop
    data = fetcher.fetch(index)
  File "/gscratch/sciencehub/kmarathe/miniconda3/envs/py38/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/gscratch/sciencehub/kmarathe/miniconda3/envs/py38/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in <listcomp>
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/mmfs1/gscratch/sciencehub/kmarathe/models/SSL/MAE/mae/evals/MultiMAE/utils/dataset_folder.py", line 307, in __getitem__
    sample_dict = self.transform(sample_dict)
  File "/mmfs1/gscratch/sciencehub/kmarathe/models/SSL/MAE/mae/evals/MultiMAE/utils/dataset_regression.py", line 120, in __call__
    task_dict['mask_valid'] = (task_dict['mask_valid'] == 255)[None]

KeyError: 'mask_valid'

image

When I set that to True -- I get the following. I used the provided script to create the NYU dataset. -- It did save train test data and depth maps, but there was no folder called mask_valid.


RuntimeError: Found 0 logs in subfolders of: /gscratch/sciencehub/vision_datasets/NYU/train/mask_valid
Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif,.tiff,.webp,.jpx

I am definitely missing something and any help here is greatly appreciated.

Thanks and regards,
Kalyani

@tyleryzhu
Copy link

Does #25 help with your query? I found a similar problem and tracked it down to that.

@ko973
Copy link

ko973 commented Nov 24, 2023

Pls I beg you can you help

@ko973
Copy link

ko973 commented Nov 24, 2023

Does #25 help with your query? I found a similar problem and tracked it down to that.

Pls pls I need more to uncoding pls help me I doing it 3rh day .Can I send you all to uncoding

@ko973
Copy link

ko973 commented Nov 24, 2023

Hi! Thanks for the great work! 💯
I am a bit confused about this parameter the in yaml file --
use_mask_valid: True # Requires "task" mask_valid to be saved to disk

When I set that to False --I get the following error while
fine-tuning a ViT based model on the NYU dataset--

Original Traceback (most recent call last):
  File "/gscratch/sciencehub/kmarathe/miniconda3/envs/py38/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 302, in _worker_loop
    data = fetcher.fetch(index)
  File "/gscratch/sciencehub/kmarathe/miniconda3/envs/py38/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/gscratch/sciencehub/kmarathe/miniconda3/envs/py38/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in <listcomp>
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/mmfs1/gscratch/sciencehub/kmarathe/models/SSL/MAE/mae/evals/MultiMAE/utils/dataset_folder.py", line 307, in __getitem__
    sample_dict = self.transform(sample_dict)
  File "/mmfs1/gscratch/sciencehub/kmarathe/models/SSL/MAE/mae/evals/MultiMAE/utils/dataset_regression.py", line 120, in __call__
    task_dict['mask_valid'] = (task_dict['mask_valid'] == 255)[None]

KeyError: 'mask_valid'

image

When I set that to True -- I get the following. I used the provided script to create the NYU dataset. -- It did save train test data and depth maps, but there was no folder called mask_valid.


RuntimeError: Found 0 logs in subfolders of: /gscratch/sciencehub/vision_datasets/NYU/train/mask_valid
Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif,.tiff,.webp,.jpx

I am definitely missing something and any help here is greatly appreciated.

Thanks and regards,
Kalyani

I have more ia what I found under my ID NUMBER .I need so much help with it pls pls can I send you all data I found

@ShreyGanatra
Copy link

ShreyGanatra commented Apr 8, 2024

Facing similar problem as @kalyani7195.
image
I am getting this as dataset after running prepare_nyuv2.py

Any help here is greatly appreciated.

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

4 participants