Smart Mask 2.0 - Mask Out a Person in Less than 90 Seconds

fr0sty wrote on 4/7/2024, 1:09 PM

VEGAS 21 Update 3 launches tomorrow, here's a video showcasing the new AI Smart Mask 2.0 effect, and how it can be used to mask a person out from the background in less than 90 seconds.

From here, the result can easily be further refined, but this is just to showcase how easy it is to get usable results very quickly.

Comments

m3lquixd wrote on 4/7/2024, 8:45 PM

interesting

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    32,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    BIOSTAR Group B450MX-S (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))
  931GB KINGSTON SNV2S1000G (SATA-2 (SSD))

UltraVista wrote on 4/7/2024, 10:28 PM

Needs better edge softening the way Capcut does it here, more acceptable to the eye even if the resolution of the cut out is similar to Vegas. I had an attempt at softening edges on the Vegas version(right image), better result but not great.

 

Steve_Rhoden wrote on 4/8/2024, 2:44 AM

@UltraVista We'll soon get there.

Former user wrote on 4/8/2024, 8:53 AM

@fr0sty Just tried your clip downloaded from your other post,

I've got to this point, shouldn't the Complete Masking activate or do we have to work with it like this? (clicking on a different event & then back to AI Smart mask resets the View Masking Results to unticked), I noticed i your vid it doesn't activate either.

This is playback over jpg, less then 1fps.

& trying this has crashed Vegas 3 times, (I've tried this fx 3 times)

fr0sty wrote on 4/8/2024, 9:04 AM

Don't expect smooth playback at this point, this effect is very CPU intensive. I never tried to play back the file after making the mask, I just skipped around on the timeline to make sure the mask didn't lose tracking at any point and made refinements as necessary. If you need a smooth preview, you'd have to use selective pre-rendering most likely... but it would take a while. Still a long way to go before we can have these AI effects preview smoothly.

I've reached out for clarification about the complete mask thing... I was able to get a usable mask without it, but yes, I too need to know why it was greyed out.

Last changed by fr0sty on 4/8/2024, 9:04 AM, changed a total of 1 times.

Systems:

Desktop

AMD Ryzen 7 1800x 8 core 16 thread at stock speed

64GB 3000mhz DDR4

Geforce RTX 3090

Windows 10

Laptop:

ASUS Zenbook Pro Duo 32GB (9980HK CPU, RTX 2060 GPU, dual 4K touch screens, main one OLED HDR)

Former user wrote on 4/8/2024, 9:51 AM

@fr0sty Preview rendering filled in all the missing keyframes, took at least 10mins but didn't improve playback (my RAM didn't increase at all) & without an actual mask being created how can it be adjusted?

Selective pre-rendering is set to mp4, there's no pop-up giving you the render options, it just goes straight into rendering? I don't remember how to change that so I rendered using ProRes XQ to get the Alpha, it took 9.26mins,. What render option to get the Alpha would you choose?

Jack S wrote on 4/8/2024, 10:22 AM

@fr0sty If you use the 'Auto analyze current frame' option, make sure that you untick the checkbox before you select your mask. If you leave it checked, the 'Complete Masking' option stays greyed out. It's unrecoverable from there unless you remove the FX and start again. I never use the Auto analyse option, that's why I've never seen the option greyed out.

Correction - If the option is greyed out, clear all the masks, including the current one and uncheck the checkbox. Analyse the current frame again and select a mask. The option becomes available again.

Last changed by Jack S on 4/8/2024, 10:36 AM, changed a total of 1 times.

My system
Genshin Infinity Gaming PC
Motherboard Gigabyte H610M H: m-ATX w/, USB 3.2, 1 x M.2
Power Supply Corsair RM750X
Intel Core i7-13700K - 16-Core [8P @ 3.4GHz-5.4GHz / 8E @ 2.50GHz-4.20GHz]
30MB Cache + UHD Graphics, Ultimate OC Compatible
Case Fan 4 x CyberPowerPC Hyperloop 120mm ARGB & PWM Fan Kit
CPU Fan CyberPowerPC Master Liquid LITE 360 ARGB AIO Liquid Cooler, Ultimate OC Compatible
Memory 32GB (2 x 16GB) DDR5/5200MHz Corsair Vengeance RGB
MSI GeForce RTX 4060 Ti 8GB - Ray Tracing Technology, DX12, VR Ready, HDMI, DP
System drive 1TB WD Black SN770 M.2 NVMe PCIe SSD - 5150MB/s Read & 4900MB/s Write
Storage 2 x 2TB Seagate BarraCuda SATA-III 6.0Gb/s 7200RPM
Windows 11 Home (x64)
Monitors
Generic Monitor (PHL 222V8) connected to GeForce RTX 4060 Ti
Generic Monitor (SAMSUNG) connected to iGPU

Camcorder
SONY Handycam HDR-XR550VE

paul-marshall wrote on 4/8/2024, 10:59 AM

90 seconds is a bit of an exageration! It took 10 minutes to Complete Masking on a 3-second clip, and that was only in 1080p. I was quite impressed by the result though, except in an area where the subject was dark and the background fussy, so given a careful choice of source material should be very usable. A promising start - slow, but thats to be expected.

Last changed by paul-marshall on 4/8/2024, 11:20 AM, changed a total of 1 times.

Windows 11.0 (64-bit)
Intel® Core™ i9 Eight-Core Processor i9-11900K (3.5GHz) 16MB Cache
Motherboard GIGABYTE Z590 UD AC (C (LGA1200, USB 3.2)
64GB Corsair VENGEANCE DDR4 3200MHz (4 x 16GB)
GPU Nvidia GEFORCE RTX3060Ti
I/O drives: Intel SSD PEKNU020TZ 2TB, Samsung SSD 870 EVO 1TB, Samsung SSD 870 EVO 1TB
SEAGATE BARRACUDA SATA-III 3.5" HDD, 2TB, 6GB/s, 7200RPM, 256MB CACHE
Audio: Soundblaster Z SE
Cameras: Sony AX-700, A7-IV, RX10-II
Vegas Po 21 latest version. Vegas user since V10

 

Former user wrote on 4/8/2024, 11:13 AM

@Jack S Thanks, yep unticking Analyse the current frame made the Complete Masking available, the preview only showed the first mask so I turned back on Analyse the current frame & it then showed all masks as i clicked across the event 👍.

Creating masks takes a while, estimate approx 9mins for your 8sec woman vid.

-----------------

🤷‍♂️🤔 Creating masks filled in all the keyframes but still doesn't play back, less then 1fps or give any option for adjustment?

fr0sty wrote on 4/8/2024, 11:25 AM

90 seconds is a bit of an exageration! It took 10 minutes to complete the masking on a 3-second clip, and that was only in 1080p. I was quite impressed by the result though, except in an area where the subject was dark and the background fussy, so given better source material should be usable. A very promising start - slow, but thats to be expected.

It took just a bit over a minute to create and refine the mask. Rendering it is a different story, but that is a hands-off process, the video was meant to show how much manual intervention was required to pull it off. For that, less than 90 seconds is accurate.

JoeK wrote on 4/8/2024, 12:46 PM

Less than 90 seconds to create, yes, render time? lul

https://streamable.com/wjh2qq this took 30 minutes to render on a 3090ti using CUDA

(orignal)

 

fr0sty wrote on 4/8/2024, 1:28 PM

Yeah, render times could improve, and hopefully will... but at least that isn't time spent behind the keyboard, you can open another instance of VEGAS and keep cutting, or work on another computer to keep getting work done. I would have spent a good half hour or so manually masking that girl out.

Last changed by fr0sty on 4/8/2024, 1:35 PM, changed a total of 1 times.

Systems:

Desktop

AMD Ryzen 7 1800x 8 core 16 thread at stock speed

64GB 3000mhz DDR4

Geforce RTX 3090

Windows 10

Laptop:

ASUS Zenbook Pro Duo 32GB (9980HK CPU, RTX 2060 GPU, dual 4K touch screens, main one OLED HDR)

paul-marshall wrote on 4/8/2024, 3:48 PM

I agree setting up the mask on the first frame is pretty quick and easy. It was the 'Complete Masking' creating a mask for every frame which took a long time. At least once that was done it was possible to preview at normal frame rate. Rendering didnt take any significant extra time.

Windows 11.0 (64-bit)
Intel® Core™ i9 Eight-Core Processor i9-11900K (3.5GHz) 16MB Cache
Motherboard GIGABYTE Z590 UD AC (C (LGA1200, USB 3.2)
64GB Corsair VENGEANCE DDR4 3200MHz (4 x 16GB)
GPU Nvidia GEFORCE RTX3060Ti
I/O drives: Intel SSD PEKNU020TZ 2TB, Samsung SSD 870 EVO 1TB, Samsung SSD 870 EVO 1TB
SEAGATE BARRACUDA SATA-III 3.5" HDD, 2TB, 6GB/s, 7200RPM, 256MB CACHE
Audio: Soundblaster Z SE
Cameras: Sony AX-700, A7-IV, RX10-II
Vegas Po 21 latest version. Vegas user since V10

 

MOrlOck_VJ wrote on 4/12/2024, 1:20 PM

Hello! I am currently testing this new feature on a 15 second video. While the analysis only took a minute, the task "Complete masking" lasted 2.5 hours. Is this normal? I think I have a powerful machine: Core i7 13th generation, 32 GB of RAM and Nvidia GeForce RTX 4060 graphics card... In the promotional video, it only takes a few seconds!

fr0sty wrote on 4/12/2024, 1:40 PM

Hello! I am currently testing this new feature on a 15 second video. While the analysis only took a minute, the task "Complete masking" lasted 2.5 hours. Is this normal? I think I have a powerful machine: Core i7 13th generation, 32 GB of RAM and Nvidia GeForce RTX 4060 graphics card... In the promotional video, it only takes a few seconds!

Rendering the mask takes longer, but it didn't take me 2.5 hours for 15 seconds... The video is meant to illustrate how long it takes to create and refine the mask, to illustrate how efficient the UI workflow is, not to show how long the render takes.

Systems:

Desktop

AMD Ryzen 7 1800x 8 core 16 thread at stock speed

64GB 3000mhz DDR4

Geforce RTX 3090

Windows 10

Laptop:

ASUS Zenbook Pro Duo 32GB (9980HK CPU, RTX 2060 GPU, dual 4K touch screens, main one OLED HDR)

MOrlOck_VJ wrote on 4/17/2024, 11:50 AM

In that case, am I wrong for it to be so long? Processing 9 seconds of video shouldn't take 2.5 hours. With the previous version (1.0) I only waited a few minutes.