Skip to main content
johnrellis
Legend
October 28, 2021
Open for Voting

P: Allow users to disable the GPU for AI masking

  • October 28, 2021
  • 24 replies
  • 5521 views

Update 6/23/2024: LR 13.2 broke the mechanism for disabling the use of the GPU by AI commands:

https://community.adobe.com/t5/lightroom-classic-ideas/p-allow-users-to-disable-the-gpu-for-ai-masking/idc-p/14698393#M22221

 

Update 10/14/2023: LR 13 (finally) provides a mechanism for disabling the use of the GPU for AI masking commands:

https://community.adobe.com/t5/lightroom-classic-ideas/p-allow-users-to-disable-the-gpu-for-ai-masking/idc-p/14158013#M20035

 

The AI masking commands should obey the setting of Preferences > Performance > Use Graphics Processor, allowing users to disable its use. That will let users on older, incompatible hardware continue to use AI masking (*), and it will greatly accelerate troubleshooting when users have incompatible GPUs or out-of-date drivers. In my quickie testing on Windows, these commands take 1-2 seconds with a GPU and 5-10 seconds without (so still quite useable). (+)

 

Both the CoreML library (Mac) and the ONNX Runtime (Windows) allow the client to specify whether the CPU or the GPU is used to execute models.

 

Providing the option Use GPU for AI Masking would be exactly in line with the other existing GPU options:

- Use GPU For Display
- Use GPU For Image Processing
- Use GPU For Export
- Use GPU To Apply Dehaze And Clarity Adjustments While Generating Previews

 

(*) LR 12 no longer lets users with less than 2 GB VRAM use People masking.  Older Macs, e.g. Mac Minis and Macbook Airs, have only 1.5 GB VRAM and can't be upgraded. Intel has an explicit "legacy drivers" policy, where they no longer fix most bugs in drivers for their older graphics hardware. The other manufacturers probably have such de facto policies as well.

 

People masking also fails for users with Imacs with Radeon 5700 graphics processors. There appears to be a bug in the graphics driver that AMD hasn't fixed or has fixed but Apple hasn't included it in Mac OS.

 

(+) It's easy to demonstrate that AI masking runs correctly but more slowly without a GPU.  On an Intel Mac, boot into Safe Mode and run LR -- Activity Monitor demonstrates there is no GPU available. On Windows, run a Parallels Virtual Machine, which won't use the GPU of the host computer.

24 replies

andrewh57
Participant
January 10, 2023

Is anybody from Adobe going to respond to this? It's quite reasonable and would end a minor but significant frustration. 

C.Cella
Inspiring
January 9, 2023

I support this request.

I think we should be given a clear "Use CPU for Ai" option in the performance panel.

Said option would automatically be checked if the GPU is not supported for Ai (and in case one could check it if GPU performance is poor)

 

.

 

 

Known Participant
January 9, 2023
At this juncture, buying a new computer is not in the cards .... I've been
working around this to a small degree, using the brush and various custom
selections ... Select Subject can work ... sometimes ...

--
*Charles Levin*
Fine Art Photography
www.charleslevinphoto.com
Instagram @charleslpics

*Times Remembered: The Final Years of the Bill Evans Trio* by Joe La
Barbera and Charles Levin
University of North Texas Press www.timesrememberedbook.com

Parkinson's Research Advocate
Connoisseur of Life
"*The secret of life is enjoying the passage of time.*" -- James Taylor
johnrellis
Legend
January 9, 2023

"I am working on a 2018 Macbook Pro ... I have 1.5GB of VRAM and was using Select People without any crashes .... Now it's grayed out ... this is very frustrating ..."

 

Agreed, Adobe has decided that your computer's graphics processor is incompatible with LR 12.1 and they stubbornly refuse to provide an option to disable its use in AI masking.  Very bizarre.

 

Your options are to roll back to LR 12.0.1 and never install future upgrades, or buy a new computer.

Known Participant
January 9, 2023

I am working on a 2018 Macbook Pro ... I have 1.5GB of VRAM and was using Select People without any crashes .... Now it's grayed out ... this is very frustrating ... 

andrewh57
Participant
January 3, 2023

I am working on a 3 year old MacBook Pro and can't fully use the masking options - my GPU is an Intel Iris Plus Graphics 655 1536 MB and it is inadequate. So frustrating.

Community Expert
January 3, 2023

Ah. Misunderstood what you meant. Thought you meant we should be able to force GPU use. Yeah completely agree the AI functions should be available when it can only run on CPU too. There is no technical reason for them not too. Only performance.

johnrellis
Legend
January 2, 2023

"...could be given a choice to risk crashing the program. Even if it gives a popup with "are you sure, your hardware might not support it and you might experience crashes" would be fine"

 

I'm not aware of any LR crashes when AI masking is used on computers without a GPU, are you?   On many older computers, LR's own self-tests will automatically disable the use of the GPU for AI masking, and it still works correctly.  I do a large amount of testing, including with AI masking, on a Windows 10 virtual machine that doesn't have access to a GPU, and I've never experienced a crash.  

 

The CoreML library (Mac) and ONNX Runtime (Windows) used to execute the machine-learning models underlying AI masking are supposed to compute the same results on the CPU and GPU.

Community Expert
January 2, 2023

Agreed this doesn't affect me but lots of people with supposedly subcritical hardware that is still very new on the forum that could be given a choice to risk crashing the program. Even if it gives a popup with "are you sure, your hardware might not support it and you might experience crashes" would be fine

johnrellis
Legend
January 2, 2023

People with three-year-old Macbooks may have only 1.5 GB of VRAM, and People masking is completely unavailable to them:

https://www.lightroomqueen.com/community/threads/people-mask-unavailable.46901/ 

 

I guess Adobe would rather these people don't have People masking at all rather than have it work slowly. See:

https://www.lightroomqueen.com/community/threads/people-mask-unavailable.46901/