Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: add .gitignore file to exclude unnecessary files
- Include patterns for PyTorch, Python, virtual environments, IDEs, Jupyter Notebooks, training logs, data files, temporary files, and model-specific files.
- This helps maintain a clean repository by ignoring files that should not be tracked.
  • Loading branch information
ChinaShrimp committed Jan 16, 2025
commit e7148a060377e047ed94f20f66847c99b314b1b9
76 changes: 76 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# PyTorch
*.pth
*.pt
*.pkl
*.onnx
*.bin

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# Virtual Environment
venv/
env/
ENV/
.env
.venv
env.bak/
venv.bak/

# IDE
.idea/
.vscode/
*.swp
*.swo
.DS_Store

# Jupyter Notebook
.ipynb_checkpoints
*.ipynb

# Training logs and outputs
runs/
logs/
outputs/
checkpoints/
wandb/

# Data
data/
datasets/
*.csv
*.json
*.h5
*.npy
*.npz

# Temporary files
tmp/
temp/
*.log
*.tmp

# Model specific
*.ckpt
*.safetensors
*.bin
pretrained_weights/