lindsey98 / Phishpedia

Official Implementation of "Phishpedia: A Hybrid Deep Learning Based Approach to Visually Identify Phishing Webpages" USENIX'21
124 stars 39 forks source link

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

Open lindsey98 opened 11 months ago

lindsey98 commented 11 months 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):