Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to download git-lfs files using the oid sha256 information

I came across a set of images (e.g., https://github.com/kehuantiantang/A-DNN-based-Semantic-Segmentation-for-Detecting-Weed-and-Crop/blob/master/stuttgart/stuttgart_cp_00000.npy) that are stored in the git lfs with the information like this:

version https://git-lfs.github.com/spec/v1
oid sha256:6692f38904c1ae21cd3d3e6e378538c07fda86fe97ee01d8664bb95fc20cd1de
size 8889498

How to view and download the original image file? I am new to Git LFS. Any one can give some detailed steps to follow?

Updates on what I did:

I downloaded the github repo: https://github.com/kehuantiantang/A-DNN-based-Semantic-Segmentation-for-Detecting-Weed-and-Crop

unzipped it to a folder, and cd to the subfolder stuttgart(here is what are included:https://github.com/kehuantiantang/A-DNN-based-Semantic-Segmentation-for-Detecting-Weed-and-Crop/tree/master/stuttgart),

type the command git lfs pull (via git bash win10), but got this error: "batch response:Rate limit exceeded: https://github.com/kehuantiantang/A-DNN-based-Semantic-Segmentation-for-Detecting-Weed-and-Crop.git/info/lfs/objects/batch error: failed to fetch some objects from 'https://github.com/kehuantiantang/A-DNN-based-Semantic-Segmentation-for-Detecting-Weed-and-Crop.git/info/lfs'

like image 534
jingweimo Avatar asked Nov 16 '22 01:11

jingweimo


1 Answers

No need for oid sha256.

git lfs fetch git lfs checkout is ok.

like image 167
amimibear Avatar answered Dec 09 '22 14:12

amimibear