loiccordone / object-detection-with-spiking-neural-networks

Repository code for the IJCNN 2022 paper "Object Detection with Spiking Neural Networks on Automotive Event Data"
MIT License
57 stars 12 forks source link

The classmethod `DetectionLitModule.load_from_checkpoint` cannot be called on an instance. Please call it on the class type and make sure the return value is used #31

Open 108360215 opened 7 months ago

108360215 commented 7 months ago

module = DetectionLitModule(args) has error when I test :python object_detection.py -path "D:\Downloads\ATIS_Automotive_Detection_Dataset\simpledata" -backbone vgg-11 -T 5 -tbin 2 -test -no_train -pretrained "D:\Downloads\ATIS_Automotive_Detection_Dataset\detection_dataset_duration_60s_ratio_1.0\gen1_train_100_20.0ms_2tbin.pt" and I use "module = DetectionLitModule.load_from_checkpoint(checkpoint_path=ckpt_path, strict=False)" do solve but It also has problem, could anyone help me. Thanks