VNext icon indicating copy to clipboard operation
VNext copied to clipboard

run demo.py error

Open Yzh619 opened this issue 2 years ago • 0 comments

Traceback (most recent call last): File "G:/Download/VNext-main/demo/demo.py", line 14, in from detectron2.data.detection_utils import read_image File "G:\Download\VNext-main\detectron2\data_init_.py", line 4, in from .build import ( File "G:\Download\VNext-main\detectron2\data\build.py", line 14, in from detectron2.structures import BoxMode File "G:\Download\VNext-main\detectron2\structures_init_.py", line 3, in from .image_list import ImageList File "G:\Download\VNext-main\detectron2\structures\image_list.py", line 8, in from detectron2.layers.wrappers import shapes_to_tensor File "G:\Download\VNext-main\detectron2\layers_init_.py", line 4, in from .mask_ops import paste_masks_in_image File "G:\Download\VNext-main\detectron2\layers\mask_ops.py", line 73, in @torch.jit.script_if_tracing AttributeError: module 'torch.jit' has no attribute 'script_if_tracing'

Process finished with exit code 1

I use python==3.6 cuda 10.1, tried different torchvision, but it did't solve.

Yzh619 avatar Aug 10 '22 01:08 Yzh619