Skip to content

Commit

Permalink
fix missing import in dockerfile
Browse files Browse the repository at this point in the history
minor comments
  • Loading branch information
denniswittich committed Aug 30, 2023
1 parent 05f1900 commit 95df480
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion trainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN apt update && \
rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install --upgrade pip

RUN python3 -m pip install seaborn thop coremltools onnx gsutil notebook wandb>=0.12.2 opencv-python==4.5.5.64 torchinfo python-dotenv
RUN python3 -m pip install seaborn thop coremltools onnx gsutil notebook wandb>=0.12.2 opencv-python==4.5.5.64 torchinfo python-dotenv httptools

WORKDIR /

Expand Down
2 changes: 2 additions & 0 deletions trainer/background_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

logging.basicConfig(level=logging.INFO)

# NOTE: This feature is not yet ready to use and is not using the newest node lib


@dataclass
class Project:
Expand Down
2 changes: 1 addition & 1 deletion trainer/batch_size_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _calc_batch_size(
free_mem = trainer_utils.get_free_memory_mb()
fraction = 0.95
free_mem *= fraction
logging.info(f'We use only {fraction *100}% of the free memory ({free_mem})')
logging.info(f'{fraction:.0%} of free memory ({free_mem}) in use')

device = torch.device('cuda', 0)
torch.cuda.empty_cache()
Expand Down

0 comments on commit 95df480

Please sign in to comment.