Closed CameronBodine closed 1 year ago
Thank you! This is what happens when you make a big change (force users to use CPU rather than GPU), but don't test .... ha! I will make this change in the next version
i want to chime in and just say that i actually like to run inference on my GPU.. so if there is a potential to keep that old GPU code, that would be cool
:pinched_fingers:
:handshake:
We made this change to make things more consistent across the doodleverse, because seg2map and coastseg use cpu only. It also cleans up the code a lot. I personally never use GPU for inference because my CPUs are many and fast. So, I just assumed it was the same for everyone.
However, it's not a big deal to revert the changes
Should be fixed in https://github.com/Doodleverse/segmentation_gym/commit/5ff8821adae421ee04cfbc6cd7e7b87cbf709d7e
This commit also includes some minor tweaks to make_datasets
that I already implemented without first branching (doh!). Those changes are
I have tested with a resunet
and a segformer
model for NCLASSES=2
Describe the bug I receive a memory growth error when I run
seg_images_in_folder.py
. See console output below.To Reproduce Steps to reproduce the behavior:
seg_images_in_folder.py
Expected behavior I expect there to not be an error.
Screenshots
Desktop (please complete the following information):
The script runs as expected when I comment out: https://github.com/Doodleverse/segmentation_gym/blob/909372e182dfc8c5c0c505c0fc465d51a3e54e31/seg_images_in_folder.py#L108-L109