Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
7

Batch process generative fill to replace blotches

Explorer ,
Dec 29, 2023 Dec 29, 2023

Hello all.

 

If I use the lasso tool in PS or LR desktop and use the AI generate tool I can successfully remove dust, scratches and in this case some believed faulty pixels.

 

Is it possible to batch process this across many images?

Spots always in the same place

 

 

 

TOPICS
Actions and scripting , Windows
2.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Dec 29, 2023 Dec 29, 2023

Sure, just record an action for the selection and generative fill with an empty prompt. Then use Automate > Batch to apply to multiple files.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 29, 2023 Dec 29, 2023

Thanks Stephen I shall give that a try.

Before I do, will an empty prompt do the same as a prompt of, say, replace with background?

Perhaps I don't ever need to fill the prompt in.

Most appreciated 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 29, 2023 Dec 29, 2023

An empty prompt is similar to content aware fill, but much better in results from my experience, but test both for yourself as this is very much dependent on image content.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 30, 2023 Dec 30, 2023

Have you figured out how to perform the creation of the Selections in the individual images in the Batch yet? 

Options would include using Quick Mask, loadin gthe Selection from a separate image, …

 

And please consider that Generative Fill only creates content of up to 1024px x 1024px (so far) – so if the bounds of your Selections exceed that the content will be upsampled. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 30, 2023 Dec 30, 2023

Hi.

I'm trying to remove some faulty sensor pixels, so the CA fill is in the order of perhaps 16 pixels down to perhaps 4 pixels.

 

I've managed to create a lasso selection across a number of images. 

Turning lens corrections off for this step looks to be helpful.

I had (incorrectly) assumed the text box for the content aware full would need completing for each image and hadn't considered leaving it blank would be just fine.

The dust and scratch tool isn't sufficiently getting rid of these pixels but that fill does.

 

I haven't looked at loading the selection from a separate image. Is this different to applying the selection to image 1, and then synchronising other images to it?

Very many thanks for your input. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 31, 2023 Dec 31, 2023

Are you working on the images in Lightroom (or Camera Raw) or in Photoshop itself? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 31, 2023 Dec 31, 2023

Typical workflow is to import camera raws into LR and process batches.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 01, 2024 Jan 01, 2024

Then that probably has little to do with Photoshop’s Batch functionality. 

Did you post on the Lightroom Forum? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 01, 2024 Jan 01, 2024

The question was for either software.

I haven't posted elsewhere.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 01, 2024 Jan 01, 2024

Then please excplain what exactly you are doing in Photoshop (not ACR) with Screenshots including the pertinent Panels. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 01, 2024 Jan 01, 2024

With the gretest respect I'm asking how to do it? 

 

This is the exam problem.

I'm trying to remove some faulty sensor pixels, of perhaps 16 pixels square down to perhaps 4 pixels.

 

This could be a lot of images, I have not yet found when the issue began.

 

Sorry I cannot provide screenshots without understanding the process first.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 01, 2024 Jan 01, 2024

I think a pure Lightroom/Camera Raw approach would make sense and you may want to post on those Fora. 

 

If you were to do it in Photoshop you’d need to create a Mask for the repeating faults you can then use in all the images (via Select > Load Selection for example). 

But again: You need to cosider that Generative Fill only generates 1024px by 1024px and upsamples that. 

And the »smallness« of the individual regions is irrelevant if you have one pixel on the left side and one on the right – then the whole width counts for Genarative Fill.

Unless you adress each of the small regions individually (which would go into time) or use Content-Aware Fill instead. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 01, 2024 Jan 01, 2024

Thanks.

In looking for a process that will work.

 

The exam question is this 

 is the exam problem.

  • I'm trying to remove some faulty sensor pixels, of perhaps 16 pixels square down to perhaps 4 pixels.
  • The spots are multiple across perhaps 5 small areas of the sensor.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 01, 2024 Jan 01, 2024

@James234592215pf3 

 

You either correct the issue in the raw converter, syncing "edits" across multiple images.

 

Or you do it the traditional way with pixel editing on rendered files using batch action or script.

 

The process is different for both.

 

What has been confusing is that it isn't clear exactly where you wish to do the work.


Pick a tool - Lr/ACR or 

Photoshop.

 

If using Photoshop, are you familiar with creating actions that are suitable for the batch command?

 

Have you tried to do what you originally wrote? If you had problems, what were they?

 

If it helps, post a sample image.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 01, 2024 Jan 01, 2024

Hi Stephen.

Part of the question is the where. I have both tools. I really don't know what the best approach is. Here are some examples of the problem and when the problem was detected.

 

I have tried the dust/scratch tool but the larger corrupted data area is quite large and using sufficient values starts to affect the whole image 

I do have XY coordinates in a file for each of the problem pixels (someone kindly created for me). I don't know if that's helpful.

 https://drive.google.com/drive/folders/1iGUETchhznsezAMm6jfzYi-uU8rTN-Qo 

Sorry if I have not been clear enough to focus an answer but I am posting the problem to solve.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 01, 2024 Jan 01, 2024

You now mention that this is for an exam... So my first thought is that this should be covered in your learning material/course notes.  :]

 

If using Lr or ACR on raw or supported rendered files:

 

The ACR healing/spot removal are the first options that come to mind:

 

2024-01-02_13-18-33.jpg

 

By selecting multiple images in the "filmstrip" inside ACR and syncing the settings, the dead/stuck sensor pixels can be removed from all images by synchronising the required settings. One can also copy/paste adjustments in Adobe Bridge to multiple images.

 

https://helpx.adobe.com/au/camera-raw/using/camera-raw-settings.html#copy_and_paste_camera_raw_setti...

 

https://helpx.adobe.com/au/camera-raw/using/enhanced-spot-removal-tool-camera-raw.html

 

https://asktimgrey.com/2021/02/10/synchronizing-camera-raw-adjustments/

 

https://www.peachpit.com/articles/article.aspx?p=2111972&seqNum=19

 

 

Alternatively, if you are not going to use Lr/ACR, then you will be using Photoshop.

 

You would record an Action using the selection tools (or loading the selection from a previously prepared open file) and content-aware or generative fill, then use Automate > Batch to apply the action to multiple images.

 

https://helpx.adobe.com/au/photoshop/using/creating-actions.html

 

https://helpx.adobe.com/au/photoshop/using/recording-tools-actions-cs6.html

 

https://helpx.adobe.com/au/photoshop/using/processing-batch-files.html#process_a_batch_of_files

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 01, 2024 Jan 01, 2024

Sorry Stephen. The term 'exam question' is often used in a way to focus on the problem. It's not a real exam. The problem is very real however and awaiting for Canon UK to help with repair to the R5.

 

Thanks for both routes and the links. 

The LR method made instant sense in my mind so I will try that tomorrow. 

If I had to apply those fixes to say many images in many folders is that possible? (I don't know if the damage was present on day 1 or if it happend in the last 18 months).

 

Your a star thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 01, 2024 Jan 01, 2024
quote

If I had to apply those fixes to say many images in many folders is that possible?


By @James234592215pf3


Certainly!

 

If using Lr, you would simply apply the appropriate develop settings to all selected images in the catalogue (database). Remember that Lr is not a file browser so the underlying directory structure isn't an issue.

 

If using Adobe Bridge and ACR, then you can work through one folder at a time, or view items from all sub-folders and hide folders and or use the filter panel to hide other file types etc.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 02, 2024 Jan 02, 2024
LATEST

Excellent.

Thank you. Really helpful

 

 

:glowing_star::glowing_star::glowing_star:

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines