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

Resize a map #6

Open
3oo0q-kvmlskz opened this issue Jul 22, 2024 · 3 comments
Open

Resize a map #6

3oo0q-kvmlskz opened this issue Jul 22, 2024 · 3 comments

Comments

@3oo0q-kvmlskz
Copy link

Hello, can the map size in the program you provided be modified? How should I modify it? I tried to change it
MAP_X_LIMIT = [0, 6.4] # Map limits on the x-axis
MAP_Y_LIMIT = [-3.2, 3.2] # Map limits on the y-axis
The operation will report an error.

@zzuxzt
Copy link
Member

zzuxzt commented Jul 25, 2024

You need to retrain the model to resize the input map since the input size to the SOGMP models is fixed.

@3oo0q-kvmlskz
Copy link
Author

Hello, I'm running
sh run_train.sh ~/data/OGM-datasets/OGM-Turtlebot2/train ~/data/OGM-datasets/OGM-Turtlebot2/val
Trying to retrain, modified
MAP_X_LIMIT = [0, 6.4] # Map limits on the x-axis
MAP_Y_LIMIT = [-3.2, 3.2] # Map limits on the y-axis
But an error was reported when running
ValueError: Using a target size (torch.Size([4, 1, 128, 128])) that is different to the input size (torch.Size([16, 1, 64, 64])) is deprecated. Please ensure they have the same size.
Why is that? Is there anything else that needs to be changed?

@zzuxzt
Copy link
Member

zzuxzt commented Aug 6, 2024

What size is your map? You need to also modify the NUM_LATENT_DIM and IMG_SIZE.

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