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
"load weight error" and "Not compiled with GPU support" #4
Comments
Hi,
The problem might be due to incomplete file downloads. Please verify the file sizes and redownload the checkpoint files. The expected file sizes are as follows: |
The download is complete and the downloaded file sizes are as follows: |
I tested the mentioned process on three different environments: python3.8&torch1.5.0, python3.8&torch2.0.1, and python3.8&torch2.1.0. In all cases, the process executed successfully. |
I also tried python 3.9 in another environment but it's all the same. I also downloaded the weights several times with different device, but nothing changed. My environment is Python 3.8/3.9 with torch 2.0.1+cu117. Just tried "torch.load('mq-glip-l')" and failed. |
This is very strange, and at the moment, I'm unsure how to resolve it. I tested it with different devices and there were no such issues. Additionally, I have successfully utilized the checkpoints in the past to reproduce the model, so I am certain that the released checkpoints are valid. |
Sorry, I found the problem is that some data is lost while transferring the weight to cluster. So the checkpoints are valid. However, there is another problem in finetuning-free evaluation for custom dataset. "RuntimeError: Not compiled with GPU support" is reported in _C.modulated_deform_conv_forward() of deform_conv.py. Is only CPU supported by now? |
The code is GPU-compatible. This error might be due to your environment, such as an incorrect CUDA installation or using a CPU version of torch. |
The GPU problem is solved following microsoft/GLIP#41. But while finetuning, an error "too many values to unpack" happens in "for iteration, (images, targets, idxs, positive_map, positive_map_eval, greenlight_map) in enumerate(data_loader, start_iter):" (line 92 of maskrcnn_benchmark/engine/trainer.py). What is this problem? |
Hi, this issue seems unrelated to the previous topic. In order to better track and address it, would you mind opening a new issue to discuss this problem? It would be helpful if you could provide detailed instructions or commands to reproduce the error you encountered. And I will handle this issue tomorrow. |
ok |
While torch.load('mq-glip-l') , there is a RuntimeError: "PytorchStreamReader failed reading zip archive: not a ZIP archive". mq-glip-t is the same as well. mq-glip-l and mq-glip-t are downloaded from https://drive.google.com/file/d/1O_eb1LrlNqpEsoxD23PAIxW8WB6sGoBO/view and https://drive.google.com/file/d/1n0_D-tisqN5v-IESUEIGzMuO-9wolXiu/view
The text was updated successfully, but these errors were encountered: