Chuyển đổi kiểu AI

Áp dụng phong cách sơn thần kinh cho ảnh của bạn, chọn kích thước và cường độ đường nhịp, giữ màu sắc của riêng bạn nếu muốn, tất cả trên thiết bị của bạn.

Chạy trong trình duyệt của bạn. Tệp không bao giờ rời khỏi thiết bị. Xem cách tự kiểm tra

…

Cách thực hiện

  1. 1
    Thêm ảnh

    Chọn một bức ảnh phong cảnh, thú cưng hoặc thành phố.

  2. 2
    Load mô hình

    Đồng ý tải về mạng kiểu một lần.

  3. 3
    Chọn một phong cách

    Mosaic, kẹo, công chúa mưa hay udnie.

  4. 4
    Đặt kích thước chi tiết

    Nhỏ hơn cho những nét táo bạo, lớn hơn cho những cái đẹp.

  5. 5
    Điều chỉnh cái nhìn

    Thay đổi cường độ và giữ màu sắc nếu muốn.

  6. 6
    Xuất khẩu

    Tải ảnh kiểu hóa ở kích thước đầy đủ.

Giới thiệu công cụ này

Neural style transfer repaints the content of one picture with the textures and colours of another. Early methods needed minutes per image on a powerful graphics card. Fast neural style networks, introduced by Johnson, Alahi and Fei-Fei in 2016, learn one style in advance so that each new photo needs only a single quick pass. This tool runs four such networks from the ONNX Model Zoo in your browser: mosaic, candy, rain princess and udnie.

The four styles

Mosaic breaks the picture into bright, tile-like fragments. Candy uses bold, sweet colours with flowing strokes. Rain princess gives dark, glowing tones with wet-looking strokes. Udnie produces abstract, blocky shapes inspired by early modernist painting. Each model is about 6.7 MB and is downloaded only when you first use that style.

Detail size and tiling

The networks were trained on 224 x 224 pixel images and take exactly that size. To work on larger pictures, the tool splits the photo into overlapping 224 pixel tiles, styles each one and blends them with feathered edges so no seams show. The detail size setting decides how big the photo is before tiling: small sizes give large, bold strokes and finish quickly; large sizes give fine strokes and take longer, because many more tiles are painted. The result is then scaled to your original size.

Strength and colour

Strength blends the stylised picture with the original. Values around 60 to 85 percent often look best, keeping faces and details readable. Keep the original colours uses only the brightness pattern of the style and the colours of your photo, a popular technique for subtler, more photographic results.

Speed

On a typical laptop each tile takes a fraction of a second. A medium detail picture is ready in a few seconds; very fine detail can take a minute. Progress is shown while tiles are painted. The work runs on your processor, so nothing is uploaded.

Good subjects

Landscapes, cityscapes, pets, flowers and architecture work well. Portraits benefit from lower strength and the keep-colours option. Busy photos with many small details can become hard to read in strong styles.

Ideas

Posters, greeting cards, album covers, profile pictures and a consistent art series from holiday photos.

Rights

The four networks were trained on well-known artworks and are published under a BSD licence. The pictures you create from your own photos are yours to use, but do not present them as original paintings by the artists whose works inspired the styles.

Limits

Only these four styles are available; training a new style needs a GPU and a training set, which is not possible in a browser. Tile blending is very good but can occasionally show slight variations of texture across a large flat area.

Ví dụ có lời giải

Một bức ảnh 4000 x 3000 của một cảng với phong cách kẹo ở chi tiết trung bình (768 px, 20 gạch) và độ bền 80 phần trăm mất khoảng 8 giây và được xuất khẩu ở kích thước đầy đủ 4000 x 3000 dưới dạng áp phích.

Tóm tắt

Câu hỏi thường gặp

Chuyển đổi kiểu thần kinh nhanh là gì?

Một mạng được đào tạo trước về một tác phẩm nghệ thuật mà vẽ lại bất kỳ bức ảnh nào theo phong cách đó trong một lần đi qua.

Tại sao chỉ có bốn phong cách?

Mỗi kiểu là một mạng được đào tạo riêng biệt.

Làm sao để có được những nét mịn hơn?

Chọn kích thước chi tiết lớn hơn. Nó mất nhiều thời gian hơn vì có nhiều gạch được sơn.

Tôi có thể giữ màu của bức ảnh không?

Đúng vậy, hãy chọn màu sắc ban đầu để chỉ sử dụng kết cấu của phong cách.

Quá lớn là tải xuống?

Khoảng 6,7 MB mỗi kiểu, tải xuống lần đầu tiên bạn sử dụng nó.

Bức ảnh của tôi đã được tải lên chưa?

Không, các kiểu dáng chạy trên thiết bị của anh.

Hoàn toàn miễn phíKhông phí, không đăng ký
Tệp luôn riêng tưMọi thứ chạy trong trình duyệt của bạn
Dễ dùng bằng ngôn ngữ của bạnCó nhiều ngôn ngữ