'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'



Solution 1:[1]

No need for oid sha256.

git lfs fetch git lfs checkout is ok.

Solution 2:[2]

You can use

git log -p -S6692f38904c1ae21cd3d3e6e378538c07fda86fe97ee01d8664bb95fc20cd1de

to get the file path, then

git lfs fetch -I [filePath]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 wcw