|
|
|
@ -13,7 +13,11 @@ import av
|
|
|
|
import av.datasets
|
|
|
|
import av.datasets
|
|
|
|
import numpy as np
|
|
|
|
import numpy as np
|
|
|
|
from pyunpack import Archive
|
|
|
|
from pyunpack import Archive
|
|
|
|
from PIL import Image
|
|
|
|
from PIL import Image, ImageFile
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# fixes: "OSError:broken data stream" when executing line 72 while loading images downloaded from the web
|
|
|
|
|
|
|
|
# see: https://stackoverflow.com/questions/42462431/oserror-broken-data-stream-when-reading-image-file
|
|
|
|
|
|
|
|
ImageFile.LOAD_TRUNCATED_IMAGES = True
|
|
|
|
|
|
|
|
|
|
|
|
from cvat.apps.engine.mime_types import mimetypes
|
|
|
|
from cvat.apps.engine.mime_types import mimetypes
|
|
|
|
|
|
|
|
|
|
|
|
|