Skip to content

i used this code both in my local and google colab #29

@Varun-Mayilvaganan

Description

@Varun-Mayilvaganan

Config '/content/PhishIntention/configs/faster_rcnn_web.yaml' has no VERSION. Assuming it to be compatible with latest v2.
Traceback (most recent call last):
File "/content/PhishIntention/phishintention.py", line 174, in
phishintention_cls = PhishIntentionWrapper()
File "/content/PhishIntention/phishintention.py", line 24, in init
self._load_config()
File "/content/PhishIntention/phishintention.py", line 28, in _load_config
self.SIAMESE_THRE, self.LOGO_FEATS, self.LOGO_FILES, self.DOMAIN_MAP_PATH = load_config()
File "/content/PhishIntention/configs.py", line 27, in load_config
AWL_MODEL = config_rcnn(cfg_path=configs['AWL_MODEL']['CFG_PATH'],
File "/content/PhishIntention/modules/awl_detector.py", line 35, in config_rcnn
predictor = DefaultPredictor(cfg)
File "/usr/local/lib/python3.10/dist-packages/detectron2/engine/defaults.py", line 288, in init
checkpointer.load(cfg.MODEL.WEIGHTS)
File "/usr/local/lib/python3.10/dist-packages/detectron2/checkpoint/detection_checkpoint.py", line 62, in load
ret = super().load(path, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/fvcore/common/checkpoint.py", line 153, in load
assert os.path.isfile(path), "Checkpoint {} not found!".format(path)
AssertionError: Checkpoint /content/PhishIntention/models/layout_detector.pth not found!
getting an error in this while running => !python phishintention.py --folder datasets/test_sites --output_txt test.txt
Screenshot (220)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions