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

change patch size in local model #76

Open
yonatan123s opened this issue Sep 14, 2023 · 1 comment
Open

change patch size in local model #76

yonatan123s opened this issue Sep 14, 2023 · 1 comment

Comments

@yonatan123s
Copy link

I have a dataset with image size 128x128. When I use patch size of 8x8 the code works for me but when I'm trying to run the local model with patches of size 16x16 instead of 8x8 I get this error:

Using a target size (torch.Size([1, 1, 128, 128])) that is different to the input size (torch.Size([1, 1, 64, 64])) is deprecated. Please ensure they have the same size.

I changed the value of "patch_size" in the file mmseg/models/segmentors/encoder_decoder_local8x8.py to be 16.

what else do I need to change?

@MengyangPu
Copy link
Owner

Please try to change the size in config files, e.g., configs/bsds/EDTER_BIMLA_320x320_80k_bsds_local8x8_bs_8.py or configs/base/models/edter_bimla_local8x8.py.

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