Here’s the code I used:
import requests
from PIL import Image
import io
import cv2
response = requests.get(df1.URL[0]).content
#print(response)
im = Image.open(io.BytesIO(response))
The image is very large. Is there a way to fasten things?
Here’s the code I used:
import requests
from PIL import Image
import io
import cv2
response = requests.get(df1.URL[0]).content
#print(response)
im = Image.open(io.BytesIO(response))
The image is very large. Is there a way to fasten things?
I’m not sure, if it’s possible to speedup request
calls, and I think you might get a better answer on e.g. stackoverflow, as this is not PyTorch-specific.
Thanks I’ll do that.