Sample photo for 為黑白照片上色 in PictorX

Open a black-and-white photo, or use the sample, then click Start. Saturation, Warmth and Strength change the colours at once.

More about AI models

為黑白照片上色

「照片上色」會在您的裝置上執行開源上色模型 DDColor,因此照片不會被上傳。模型負責預測顏色;每個像素的明度完全維持原照片的樣子,因此細節不會丟失。之後可用飽和度、暖度和強度調整結果,不必再執行模型。 Open a black-and-white photo, or use the sample, then click Start. Saturation, Warmth and Strength change the colours at once.

How it works

  1. 開啟一張黑白或褪色的舊照片,或使用樣本。
  2. 點一下「開始」。裝置端 AI 會為整張畫面預測自然的色彩。
  3. 試試「自然」、「鮮豔」、「暖色」、「冷色」或「褪色」,調整飽和度、暖度和強度,然後儲存或繼續編輯。

顏色來自模型,細節來自您的照片

DDColor(Apache-2.0)是一套雙解碼器上色網路,會在瀏覽器中以 WebGPU 或 WebAssembly 執行。它會查看照片的 512 × 512 版本,並預測 CIELAB 色彩空間中的兩個色彩通道。這些顏色會被放大,再與原圖完整尺寸的明度結合,因此臉孔、文字和細緻質感會保持原本的清晰度。彩色照片也可以用:模型只看灰色值,再重新為它們上色。

調整色彩

「飽和度」會讓顏色更強或更柔(100 % 是模型本身的顏色,0 % 則回到灰色照片)。「暖度」會把整張畫面推向黃和紅,或推向藍色,有助於配合某個時代或季節的風格。「強度」會把顏色與原圖混合,呈現手工上色的感覺。模型每張照片只執行一次,因此每次調整都是即時的。

Frequently asked questions

How do I colorize a black-and-white photo?

Open the photo and click Start. On-device AI predicts colours for the whole picture in a few seconds. Try the Natural, Vivid, Warm, Cool and Faded presets or set Saturation, Warmth and Strength yourself, then save the picture. The same tool is in the editor under AI → Image → Colorize photo.

Which AI model colorizes the photo?

DDColor, an open-source colorization model (Apache-2.0) from the paper "DDColor: Towards Photo-Realistic Image Colorization via Dual Decoders". It is downloaded once, kept in your browser and runs with WebGPU or WebAssembly.

Will the colorized photo lose detail?

No. The model only predicts colour. The lightness of every pixel comes from your original at its full size, so faces, hair, text and film grain look exactly as sharp as before.

Are the colours historically correct?

The model chooses plausible colours from what it learned from millions of photos: skin, sky, grass and wood usually look natural, but the real colour of a dress, a car or a painted wall cannot be known from a grey photo. Use Warmth and Saturation to adjust the mood, or recolour single areas in the editor.

Can I colorize faded or sepia photos?

Yes. The photo is turned into grey values first, so sepia, yellowed and faded prints are coloured afresh. For scratches and spots, run AI photo repair first; for small or blurry scans, Enhance and upscale image.

Ready to try it?

Open PictorX in your browser — no install, no credit card required to start.

前往編輯器