Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement debug report generation and adjust issue template #674

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ body:
- type: textarea
id: environment
attributes:
label: Output of `pip freeze`
description: Activate the virtual environment and give the output of `pip freeze`
label: Generate and upload debug_report.log
description: Please attach your `debug_report.log` file. This file is generated by double-clicking on `export_debug.bat` in the OneTrainer folder on Windows, or by running `./run-cmd.sh generate_debug_report` on Mac/Linux.
placeholder: Drag and drop the file or click the paperclip icon below to upload.
render: ''
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ pixi.toml
# misc files
/src
train.bat
debug_report.log
21 changes: 21 additions & 0 deletions export_debug.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@echo off

if not defined PYTHON (set PYTHON=python)
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")

:check_venv
dir "%VENV_DIR%" >NUL 2>NUL
if %ERRORLEVEL%==0 goto :activate_venv
echo venv not found, please run install.bat first
goto :end

:activate_venv
echo activating venv %VENV_DIR%
set PYTHON="%VENV_DIR%\Scripts\python.exe"
echo Using Python %PYTHON%

:launch
%PYTHON% scripts\generate_debug_report.py

:end
pause
4 changes: 4 additions & 0 deletions requirements-global.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ customtkinter==5.2.2
# cloud
runpod==1.7.4
fabric==3.2.2

# debug
psutil==6.1.1
requests==2.32.3
Loading