on-internet
← Community

What do these TORCH_USE_CUDA_DSA and frozen_modules errors mean and how to fix them?

Stack Overflow ·

I'm trying to run a Mask R-CNN model with aerial imagery. To optimise this, I run everything with CUDA. But this creates a few errors. Here is my code: # Python import torch import torchvision from torchvision.models.detection import MaskRCNN import gc import torch.nn as nn from torchvision.models.detection.rpn import AnchorGenerator from torch.cuda.amp import GradScaler os.environ["CUDA_LAUNCH_BLOCKING"] = "1" gc.collect() torch.cuda.empty_cache() # Define the model resnet_net = torchvision.models.resnet18(weights=torchvision.models.ResNet18_Weights.DEFAULT) modules = list(resnet_net.children

Comments

Sign in or sign up to comment and upvote.

No comments yet.