Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
16016b1
更新了主程序文件
abc123335 Dec 19, 2025
5332a8a
Merge branch 'main' of https://github.com/abc123335/nn
abc123335 Dec 19, 2025
0b00767
Merge branch 'OpenHUTB:main' into main
abc123335 Dec 19, 2025
5d83d5e
更新了README.md文件
abc123335 Dec 19, 2025
8148042
Merge branch 'main' of https://github.com/abc123335/nn
abc123335 Dec 19, 2025
d500174
为系统增添了碰撞检测功能
abc123335 Dec 20, 2025
96002de
Merge branch 'OpenHUTB:main' into main
abc123335 Dec 20, 2025
8861283
Merge branch 'main' of https://github.com/abc123335/nn
abc123335 Dec 20, 2025
ac8af3c
Merge branch 'OpenHUTB:main' into main
abc123335 Dec 20, 2025
f2f6b18
加入碰撞检测功能板块
abc123335 Dec 20, 2025
f8121a2
Merge branch 'main' of https://github.com/abc123335/nn
abc123335 Dec 20, 2025
a23bd55
Fix: remove tensorflow to save disk space
abc123335 Dec 20, 2025
195edb7
Delete main.py
abc123335 Dec 20, 2025
683856d
Delete requirements.txt
abc123335 Dec 20, 2025
de767dc
增加了新的功能模块
abc123335 Dec 20, 2025
ab59031
Merge branch 'main' of https://github.com/abc123335/nn
abc123335 Dec 20, 2025
0cb805a
Delete README.md
abc123335 Dec 20, 2025
4bc826f
增加新的功能板块
abc123335 Dec 20, 2025
4777082
Merge branch 'OpenHUTB:main' into main
abc123335 Dec 20, 2025
fedd9a9
Merge branch 'main' of https://github.com/abc123335/nn
abc123335 Dec 20, 2025
b82ac9c
增加新的碰撞检测功能
abc123335 Dec 20, 2025
56214be
Merge branch 'OpenHUTB:main' into main
abc123335 Dec 20, 2025
5867397
Merge branch 'main' of https://github.com/abc123335/nn
abc123335 Dec 20, 2025
83f6ca8
恢复 requirements.txt
abc123335 Dec 20, 2025
4272758
Remove empty line from workflow YAML file
abc123335 Dec 20, 2025
09fb5e5
Update python_test.yml
abc123335 Dec 20, 2025
9f1751d
Update requirements.txt
abc123335 Dec 20, 2025
cb89114
Update requirements.txt
abc123335 Dec 20, 2025
57c3563
Update python_test.yml
abc123335 Dec 20, 2025
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
1 change: 0 additions & 1 deletion .github/workflows/Conpute_involvement.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: compute involvement degree

# 触发条件:每次 push 代码时运行
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/python_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,40 @@
name: Testing
on: [push, pull_request]


jobs:
build:
name: Test Python script
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

# 任务名称:设置Python环境
- name: Set up Python
# This is the version of the action for setting up Python, not the Python version.
uses: actions/setup-python@v5
with:
python-version: '3.9' # 指定python版本
# Optional - x64 or x86 architecture, defaults to x64
python-version: '3.11' # 指定python版本 (已改为 3.11,很好)
architecture: 'x64'

# === 👇 关键修改开始 👇 ===

# 1. 先单独安装 CPU 版本的 PyTorch
# 原因:默认的 PyTorch 包含几个GB的 Nvidia 显卡驱动,会把 GitHub 的硬盘撑爆。
# 指定 CPU 版本后,体积非常小,几秒钟就装好了。
- name: Install CPU-only PyTorch
run: pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu

# 2. 再安装剩下的 requirements.txt
# pip 会检测到 torch 已经安装了,就会跳过那个巨大的 GPU 版本,从而解决空间不足的问题。
- name: Install Python dependencies
run: python -m pip install -r requirements.txt

# === 👆 关键修改结束 👆 ===

- name: Python script testing
# working-directory: ./src
run: |
cd src/chap01_warmup && python numpy_tutorial.py && cd ../..
cd src/chap02_linear_regression && python exercise-linear_regression.py && cd ../..
cd src/chap02_linear_regression && python linear_regression-tf2.0.py && cd ../..
cd src/chap03_softmax_regression && python logistic_regression-exercise.py && cd ../..
cd src/chap03_softmax_regression && python softmax_regression-exercise.py && cd ../..


54 changes: 0 additions & 54 deletions README.md

This file was deleted.

Loading
Loading