myfirstmodel / readdata_mydata.py
Mashengshuaiqi's picture
Upload readdata_mydata.py
0dfe04a
raw
history blame contribute delete
252 Bytes
from huggingface_hub import hf_hub_download
import cv2
REPO_ID = "Mashengshuaiqi/myfirstdataset"
FILENAME = "banana.png"
img = cv2.imread(
hf_hub_download(repo_id=REPO_ID, filename=FILENAME, repo_type="dataset")
)
print(" ====> ",img.shape )