This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Quantization-Aware Training (QAT) for DocCornerNet. | |
| This script fine-tunes a pre-trained model with fake quantization to simulate | |
| INT8 quantization effects during training, resulting in a model that maintains | |
| accuracy after INT8 conversion. | |
| Usage: | |
| python train_qat.py --checkpoint checkpoints/doccornernet_v2/best.pth \ | |
| --output_dir checkpoints/doccornernet_qat \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################################### | |
| # LibreOffice master + .NET bindings – tail autogen.log on error (bash shell) | |
| ############################################################################### | |
| ############################# | |
| # STAGE 1 ▸ builder | |
| ############################# | |
| FROM ubuntu:22.04 AS builder | |
| SHELL ["/bin/bash", "-c"] # <── usa bash per tutti i RUN seguenti |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM mcr.microsoft.com/dotnet/aspnet:6.0 as builder | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV OPENCV_VERSION=4.7.0 | |
| WORKDIR / | |
| # Install opencv dependencies | |
| RUN apt-get update && apt-get -y install --no-install-recommends \ | |
| apt-transport-https \ |