anonderpling commited on
Commit
decefcb
1 Parent(s): cd27b64

Add script to estimate LFS storage usage

Browse files
Files changed (1) hide show
  1. storage-estimator.sh +5 -0
storage-estimator.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # needs numfmt, bc, paste, rev, sed. all but bc are installed on colab
2
+ #
3
+ # GIT_LFS_SKIP_SMUDGE git clone https://huggingface.co/anonderpling/civitai_mirror
4
+ # cd civitai_mirror
5
+ it lfs ls-files -san|rev|cut -d'(' -f1|cut -d')' -f2|rev|sed -E 's/ |B$//g'|numfmt --from=iec |paste -sd+ -|bc|numfmt --to=iec