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
RuntimeError: Creating MTGP constants failed #15
Comments
Hi, I am not totally sure, but it seems that you are not following the official structure of the Ade20k dataset. OASIS/dataloaders/Ade20kDataset.py Line 40 in 6e728ec
Could you try to re-arrange the folders so that they follow the official Ade20k structure? |
Hi, thanks for the reply ;)
in I don't know if this has something to be: but I am exploring the outputs of the dataloaders in this case Lines 23 to 24 in 6e728ec
and for data_i
and I don't know if this is fine or not. I am just commenting this because of the error and I read in the the dataloader is expecting OASIS/dataloaders/Ade20kDataset.py Lines 16 to 18 in 6e728ec
, that is up to 150 labels and maybe I am providing more somehow? |
Thanks for trying out! In our version we had only 150 classes, yours seems to have more? |
It seems to me that the Do you think that this could be the problem? edit: in my case I obtained values that go between 0..255 because of the RGB colors. |
I don't know if there is any mapper EDIT: I am following this answer to see if I can make it work: |
The output of |
Well, I have good and bad news. The good news is that after downloading the dataset that you pointed out in #7 (comment) I don't obtain that error any more. The bad news is that I have a new error XD:
I guess I'll have to debug this new error. However there is not much info in the error message :S |
It seems that this error is related with some cuda-pytorch combinations. I will try to use newer versions of cuda and torch to see if I can fix this error. However what intrigues me is that I am using the same versions as you since I create the env using the provided yaml. |
I close this issue since the original problem was fixed. 🚫 The problem is that the dataloader is expecting 1channel gray-scale images and somehow I downloaded a test set of ADE in which the labels are in color. Then My labels where ✅ Using gray scale images fixed my original issue. Thanks @SushkoVadim for the fast reply and the nice repo. |
Hi, I am trying to implement this repo.
I've downloaded the ade20k checkpoints and created a conda env following your yaml file.
When I run the testing command
python test.py --name oasis_ade20k --dataset_mode ade20k --gpu_ids 0 \ azureuser@ivan-fantasia-default --dataroot test_images --batch_size 1
I get the following error:I am running on
test_image
folder which are some ade20k images.Any suggestion?
Thanks ;)
The text was updated successfully, but these errors were encountered: