Skip to content

Commit

Permalink
Allow truncated images (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quintulius authored Feb 20, 2020
1 parent a76722b commit 18b3279
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/database/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
import imantics as im


from PIL import Image
from PIL import Image, ImageFile
from mongoengine import *

from .events import Event, SessionEvent
from .datasets import DatasetModel
from .annotations import AnnotationModel


ImageFile.LOAD_TRUNCATED_IMAGES = True


class ImageModel(DynamicDocument):

COCO_PROPERTIES = ["id", "width", "height", "file_name", "path", "license",\
Expand Down

0 comments on commit 18b3279

Please sign in to comment.