Download readdata_mydata.py from Mashengshuaiqi/myfirstmodel: direct link, hf CLI and curl.
- Browser
- Download file 252 Bytes
-
https://huggingface.co/Mashengshuaiqi/myfirstmodel/resolve/main/readdata_mydata.py
- Command line
-
hf download hf://Mashengshuaiqi/myfirstmodel/readdata_mydata.py
-
curl -L -o readdata_mydata.py https://huggingface.co/Mashengshuaiqi/myfirstmodel/resolve/main/readdata_mydata.py
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 ) | |