mirror of
https://github.com/azaion/ai-training.git
synced 2026-04-22 06:56:34 +00:00
142c6c4de8
- Replaced module-level path variables in constants.py with a structured Pydantic Config class. - Updated all relevant modules (train.py, augmentation.py, exports.py, dataset-visualiser.py, manual_run.py) to access paths through the new config structure. - Fixed bugs related to image processing and model saving. - Enhanced test infrastructure to accommodate the new configuration approach. This refactor improves code maintainability and clarity by centralizing configuration management.
15 lines
372 B
Docker
15 lines
372 B
Docker
FROM python:3.10-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends libgl1 libglib2.0-0 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements-test.txt .
|
|
RUN pip install --no-cache-dir -r requirements-test.txt
|
|
|
|
COPY . .
|
|
|
|
CMD ["python", "-m", "pytest", "tests/", "--tb=short", "--junitxml=/app/test-results/test-results.xml", "-q"]
|