berkeley-hipie/HIPIE

Colab - AssertionError: An object named 'MaskDINOEncoder' was already registered in 'SEM_SEG_HEADS' registry!

Opened this issue · 0 comments

ERROR:
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/ops/functions/ms_deform_attn_func.py:23: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/ops/functions/ms_deform_attn_func.py:34: FutureWarning: torch.cuda.amp.custom_bwd(args...) is deprecated. Please use torch.amp.custom_bwd(args..., device_type='cuda') instead.
def backward(ctx, grad_output):
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/ops/modules/ms_deform_attn.py:78: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/usr/local/lib/python3.10/dist-packages/timm/models/layers/init.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
warnings.warn(f"Importing from {name} is deprecated, please import via timm.layers", FutureWarning)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer.py:174: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer.py:294: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer.py:351: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer.py:398: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer.py:431: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer_dino.py:179: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer_dino.py:327: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer_dino.py:384: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer_dino.py:431: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer_dino.py:466: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer_dino.py:535: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/maskdino/transformer_decoder/dino_decoder.py:220: FutureWarning: torch.cuda.amp.autocast(args...) is deprecated. Please use torch.amp.autocast('cuda', args...) instead.
@autocast(enabled=False)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/maskdino/pixel_decoder/maskdino_encoder.py:368: FutureWarning: torch.cuda.amp.autocast(args...) is deprecated. Please use torch.amp.autocast('cuda', args...) instead.
@autocast(enabled=False)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/ops/functions/ms_deform_attn_func.py:23: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/ops/functions/ms_deform_attn_func.py:34: FutureWarning: torch.cuda.amp.custom_bwd(args...) is deprecated. Please use torch.amp.custom_bwd(args..., device_type='cuda') instead.
def backward(ctx, grad_output):
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/ops/modules/ms_deform_attn.py:78: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer.py:174: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer.py:294: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer.py:351: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer.py:398: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer.py:431: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer_dino.py:179: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer_dino.py:327: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer_dino.py:384: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer_dino.py:431: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer_dino.py:466: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/deformable_detr/deformable_transformer_dino.py:535: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/maskdino/transformer_decoder/dino_decoder.py:220: FutureWarning: torch.cuda.amp.autocast(args...) is deprecated. Please use torch.amp.autocast('cuda', args...) instead.
@autocast(enabled=False)
/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/maskdino/pixel_decoder/maskdino_encoder.py:368: FutureWarning: torch.cuda.amp.autocast(args...) is deprecated. Please use torch.amp.autocast('cuda', args...) instead.
@autocast(enabled=False)
Traceback (most recent call last):
File "/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/main.py", line 11, in
from object_segmentation.hipie import init_hipie_segmentation_model, get_hipie_segmentation_mask
File "/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/object_segmentation/hipie.py", line 5, in
from projects.HIPIE.hipie.demo_lib.part_segm_demo import PartSegmDemo
File "/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/demo_lib/part_segm_demo.py", line 25, in
from detectron2.projects.hipie import add_hipie_config
File "/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/init.py", line 2, in
from .hipie_img import HIPIE_IMG
File "/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/hipie_img.py", line 21, in
from .models.ddetrs_dn import DDETRSegmUniDN
File "/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/ddetrs_dn.py", line 21, in
from .maskdino.build import build_maskdino
File "/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/maskdino/build.py", line 4, in
from .meta_arch.maskdino_head import MaskDINOHead
File "/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/maskdino/meta_arch/maskdino_head.py", line 17, in
from ..pixel_decoder.maskdino_encoder import build_pixel_decoder
File "/content/drive/MyDrive/Arslan/PIXSPLIT/oct_22_2024_pixsplit_hipie_integration/HIPIE/projects/HIPIE/hipie/models/maskdino/pixel_decoder/maskdino_encoder.py", line 191, in
class MaskDINOEncoder(nn.Module):
File "/usr/local/lib/python3.10/dist-packages/fvcore/common/registry.py", line 59, in deco
self._do_register(name, func_or_class)
File "/usr/local/lib/python3.10/dist-packages/fvcore/common/registry.py", line 44, in _do_register
name not in self._obj_map
AssertionError: An object named 'MaskDINOEncoder' was already registered in 'SEM_SEG_HEADS' registry!