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

RuntimeError: CUDA error: out of memory in the demo.py #9

Open
Hikeylin opened this issue Feb 20, 2023 · 0 comments
Open

RuntimeError: CUDA error: out of memory in the demo.py #9

Hikeylin opened this issue Feb 20, 2023 · 0 comments

Comments

@Hikeylin
Copy link

Config '../configs/SSIS/MS_R_101_BiFPN_with_offset_class_demo.yaml' has no VERSION. Assuming it to be compatible with latest v2.
Traceback (most recent call last):
File "/home/w/SSIS/demo/demo.py", line 79, in
demo = VisualizationDemo(cfg)
File "/home/w/SSIS/demo/predictor.py", line 44, in init
self.predictor = DefaultPredictor(cfg)
File "/home/w/anaconda3/envs/ssis/lib/python3.9/site-packages/detectron2/engine/defaults.py", line 282, in init
self.model = build_model(self.cfg)
File "/home/w/anaconda3/envs/ssis/lib/python3.9/site-packages/detectron2/modeling/meta_arch/build.py", line 22, in build_model
model = META_ARCH_REGISTRY.get(meta_arch)(cfg)
File "/home/w/SSIS/adet/modeling/ssis/condinst.py", line 73, in init
pixel_mean = torch.Tensor(cfg.MODEL.PIXEL_MEAN).to(self.device).view(3, 1, 1)
RuntimeError: CUDA error: out of memory
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

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

1 participant