Commit
•
0dfe04a
1
Parent(s):
4d39214
Upload readdata_mydata.py
Browse files- readdata_mydata.py +14 -0
readdata_mydata.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from huggingface_hub import hf_hub_download
|
2 |
+
import cv2
|
3 |
+
|
4 |
+
REPO_ID = "Mashengshuaiqi/myfirstdataset"
|
5 |
+
FILENAME = "banana.png"
|
6 |
+
|
7 |
+
img = cv2.imread(
|
8 |
+
hf_hub_download(repo_id=REPO_ID, filename=FILENAME, repo_type="dataset")
|
9 |
+
)
|
10 |
+
|
11 |
+
print(" ====> ",img.shape )
|
12 |
+
|
13 |
+
|
14 |
+
|