-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
35 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Предобученная модель | ||
|
||
*Внимание!* Эти файлы занимают очень много места. Поэтому их нужно помещать не в GIT, а в GIT-LFS. | ||
|
||
Для этого у вас должен быть установлен пакет `git-lfs`. | ||
```bash | ||
sudo apt install git-lfs | ||
``` | ||
|
||
В _корне проекта_ нужно отметить те файлы, которые будут попадать в `git-lfs`: | ||
```bash | ||
git lfs install | ||
git lfs track *.onnx_data *.onnx | ||
``` | ||
После этого у вас должен появиться файл `<root project dir>/.gitattributes` со следующим содержимым: | ||
``` | ||
*.onnx_data filter=lfs diff=lfs merge=lfs -text | ||
*.onnx filter=lfs diff=lfs merge=lfs -text | ||
``` | ||
|
||
После этого файлы можно добавлять обычным способом, они не будут обрабатываться самим `git`, их будет обслуживать `git-lfs`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters