DA-OD-MEAA-PyTorch icon indicating copy to clipboard operation
DA-OD-MEAA-PyTorch copied to clipboard

demo_global.py is not working

Open Shuntw6096 opened this issue 4 years ago • 3 comments

 # initilize the network here.
  from model.faster_rcnn.vgg16_SCL import vgg16

  if args.net == 'vgg16':
    fasterRCNN = vgg16(foggy_classes, pretrained=True)

    # fasterRCNN = vgg16(pascal_classes, pretrained=False, class_agnostic=args.class_agnostic,lc=args.lc,gc=args.gc)
  elif args.net == 'res101':
    fasterRCNN = resnet(pascal_classes, 101, pretrained=False, class_agnostic=args.class_agnostic,context=args.context)
  elif args.net == 'res50':
    fasterRCNN = resnet(pascal_classes, 50, pretrained=False, class_agnostic=args.class_agnostic)
  elif args.net == 'res152':
    fasterRCNN = resnet(pascal_classes, 152, pretrained=False, class_agnostic=args.class_agnostic)
  else:
    print("network is not defined")
    pdb.set_trace()

  fasterRCNN.create_architecture()

It seems that some files are missing.

Traceback (most recent call last):
  File "demo_global.py", line 192, in <module>
    from model.faster_rcnn.vgg16_SCL import vgg16
ModuleNotFoundError: No module named 'model.faster_rcnn.vgg16_SCL'

Thanks

Shuntw6096 avatar Mar 12 '21 13:03 Shuntw6096

@erictseng610 is this a module from faster_rcnn? If so can you include it into the repo?

theblackcat102 avatar Mar 12 '21 14:03 theblackcat102

Hi, I found another version of the faster-rcnn https://github.com/harsh-99/SCL/tree/master/lib/model/faster_rcnn

Is this the same as the missing one? Thanks.

Shuntw6096 avatar Mar 13 '21 10:03 Shuntw6096

We have not finished demo_global.py yet. I'll fix this bug in the following days

erictseng610 avatar Mar 13 '21 12:03 erictseng610