lindsey98 / Phishpedia

Official Implementation of "Phishpedia: A Hybrid Deep Learning Based Approach to Visually Identify Phishing Webpages" USENIX'21
Creative Commons Zero v1.0 Universal
129 stars 45 forks source link

AttributeError: module 'PIL.Image' has no attribute 'LINEAR' #22

Open lindsey98 opened 1 year ago

lindsey98 commented 1 year ago

Step 1: Open .../anaconda3/envs/.../lib/python3.8/site-packages/detectron2/data/transforms/transform.py in editor, go to Line 46: Step 2: Change

 def __init__(self, src_rect, output_size, interp=Image.LINEAR, fill=0):

to

 def __init__(self, src_rect, output_size, interp=Image.BILINEAR, fill=0):