사진 배경 제거 도구(오빠두엑셀 https://www.oppadu.com/tools/background-remover/) — 쓰고 있는 모델·엔진과 라이선스 사진은 서버로 보내지 않습니다. 아래 모델과 엔진을 방문자의 브라우저로 내려받아 그 안에서 처리합니다. 1. 배경 제거 모델 — U²-Net (u2net) Xuebin Qin, Zichen Zhang, Chenyang Huang, Masood Dehghan, Osmar R. Zaiane, Martin Jagersand, "U²-Net: Going Deeper with Nested U-Structure for Salient Object Detection", Pattern Recognition 106 (2020). https://github.com/xuebinqin/U-2-Net 라이선스: Apache License 2.0 — 전문은 아래 주소에서 볼 수 있습니다. https://www.oppadu.com/wp-content/themes/generatepress_child/tools/_background-remover-assets/licenses/u2net-LICENSE.txt ONNX 형식 파일은 rembg 프로젝트(https://github.com/danielgatis/rembg, MIT License, Copyright (c) 2020 Daniel Gatis)가 배포하는 u2net.onnx(md5 60024c5c889badc19c04ad937298a77b)를 썼습니다. 고친 점(Apache License 2.0 제4조 b항에 따른 표시): 오빠두엑셀이 2026-10-02 에 이 모델을 고쳐 배포합니다(파일 이름 u2net-w8dq.onnx). 내려받는 크기를 176MB 에서 47MB 로 줄인 판이고, 고친 내용은 아래와 같습니다. - 합성곱 가중치 가운데 원소가 1,024개 이상인 116개를 8비트 정수(-127~127)로 바꿔 저장했습니다. 작은 합성곱 가중치 3개(side1·side2·outconv)와 편향 119개는 원본 그대로입니다. - 눈금(되돌릴 때 곱하는 값)은 출력 채널마다, 입력 채널 64개 묶음마다, 커널 칸(3×3 의 9칸)마다 하나씩 따로 둡니다. 눈금 하나가 맡는 값은 같은 출력 채널·같은 커널 칸의 입력 채널 64개입니다 (입력 채널이 64개보다 적은 층은 전부). 눈금은 그 가운데 가장 큰 절댓값을 127 로 나눈 값입니다. - 가중치마다 DequantizeLinear 노드 하나를 넣어, 8비트 값에 눈금을 곱해 32비트 실수로 되돌립니다. 이 도구에서는 모델을 불러올 때 한 번만 계산합니다. - 이 노드의 묶음 단위 눈금(block_size)은 opset 21 부터 쓸 수 있어서 ONNX opset 을 11 → 21, IR 버전을 6 → 10 으로 올렸습니다. 새 형식에 맞춰 Unsqueeze 76개의 axes 를 속성에서 입력으로 옮겼습니다. - 고친 판이라는 표시로 모델 정보(producer_name)에 "+oppadu-compress-w8dq" 를 덧붙였습니다. - 그 밖의 계산 구조와 입·출력은 원본과 같습니다. 원본과 비교한 마스크 평균 차이는 0.03~0.41% 입니다. 만든 도구: 오빠두엑셀 저장소 scripts/bg-remover/compress-model.mjs (--mode=w8dq --group=64) 2. 추론 엔진 — ONNX Runtime Web 1.30.0 Copyright (c) Microsoft Corporation. MIT License. https://github.com/microsoft/onnxruntime jsDelivr(https://cdn.jsdelivr.net/npm/onnxruntime-web@1.30.0/)에서 원본 그대로 불러옵니다. --------------------------------------------------------------------------------------------------- English summary This tool removes photo backgrounds inside the visitor's browser; photos are never uploaded. 1. Model: U²-Net by Xuebin Qin et al. (Pattern Recognition 2020), https://github.com/xuebinqin/U-2-Net, licensed under the Apache License 2.0. Full license text: https://www.oppadu.com/wp-content/themes/generatepress_child/tools/_background-remover-assets/licenses/u2net-LICENSE.txt ONNX export taken from rembg (https://github.com/danielgatis/rembg, MIT License, Copyright (c) 2020 Daniel Gatis). MODIFIED by Oppadu (2026-10-02), distributed as u2net-w8dq.onnx (176 MB -> 47 MB): the 116 convolution weights with 1,024 or more elements are stored as symmetric 8-bit integers (-127..127), with one scale per output channel, per block of up to 64 input channels and per kernel position (3x3); each scale is the largest absolute value among the values it covers, divided by 127. A single DequantizeLinear node per weight restores them to float32 (this tool does that once, at load time). To use DequantizeLinear's block_size, the opset was upgraded 11 -> 21 and the IR version 6 -> 10, and the axes of the 76 Unsqueeze nodes were moved from an attribute to an input. producer_name carries the suffix "+oppadu-compress-w8dq". The 3 smaller convolution weights, all biases, the rest of the network and its inputs/outputs are unchanged. 2. Inference engine: ONNX Runtime Web 1.30.0, Copyright (c) Microsoft Corporation, MIT License, loaded unmodified from jsDelivr.