Skip to content

[New Notebook] Biological Texture Generation (Iris) using LCM & OpenVINO#3288

Open
humbeaniket2006-max wants to merge 2 commits intoopenvinotoolkit:latestfrom
humbeaniket2006-max:add-biological-texture-lcm
Open

[New Notebook] Biological Texture Generation (Iris) using LCM & OpenVINO#3288
humbeaniket2006-max wants to merge 2 commits intoopenvinotoolkit:latestfrom
humbeaniket2006-max:add-biological-texture-lcm

Conversation

@humbeaniket2006-max
Copy link

@humbeaniket2006-max humbeaniket2006-max commented Jan 31, 2026

Description:
This Pull Request adds a new notebook demonstrating the generation of high-fidelity biological textures, specifically iris patterns, using Latent Consistency Models (LCM) optimized with OpenVINO.

This notebook addresses the need for efficient, high-quality texture generation in medical imaging and biometric datasets, significantly reducing inference steps compared to traditional Latent Diffusion Models (LDMs).

Related Issue:
Closes #3241

Key Features:

  • Model Implementation: Utilizes Latent Consistency Models (LCM) for rapid image generation.
  • OpenVINO Optimization: Compiles the pipeline for Intel CPU/GPU inference.
  • Specific Use Case: Synthetic biological data (iris textures).

Checklist:

  • Dependencies installed via %pip install in the first cell.
  • Code formatted with Black (line length 160).
  • Telemetry and Scarf Pixel tags added.
  • README.md created in the notebook folder.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@humbeaniket2006-max humbeaniket2006-max changed the title [New Notebook] Biological Texture Generation (Iris) using LCM & OpenVINOAdd Biological Texture Generation notebook (Fixes #3241) [New Notebook] Biological Texture Generation (Iris) using LCM & OpenVINO Jan 31, 2026
@brmarkus
Copy link

Would you mind adding a README and (much) more documentation and descriptions, maybe including references, cites to papers or blogs, please, with example outputs with its example prompts (like reusing some from https://github.com/humbeaniket2006-max/Ocular_Core_Lite)?

Have a look into e.g. "https://github.com/openvinotoolkit/openvino_notebooks/blob/latest/notebooks/hello-world/hello-world.ipynb" for how to typically install dependencies (e.g. %pip install -q ... ...)

Could you also add an inference device selection (CPU, GPU, VPU if supported), please?

Do you really want to completely rely on the thirdparty call for model compilation and the inference, instead of demonstrating OpenVINO APIs within this notebook? Completely delegating everything to a 3rdparty tool/library and then "just call one method to do everything" makes this whole notebook... not so... exciting... and demonstrative?

@humbeaniket2006-max
Copy link
Author

Thank you for the detailed feedback! I appreciate the guidance on alignment with the repository standards.

I will start working on these changes immediately:

1.Adding a comprehensive README and more explanatory markdown/references in the notebook.

2.Adding the standard OpenVINO device selection widget.

3.Refactoring the pipeline to better demonstrate OpenVINO's specific capabilities (compilation and inference) rather than just abstracting it away.

I'll push the updates soon!

@brmarkus
Copy link

@jgespino do you want to comment as well?

@humbeaniket2006-max
Copy link
Author

Thanks for the feedback! I have refactored the notebook to address your points:

  1. Removed the 3rd-party wrapper: The notebook now uses optimum.intel.openvino explicitly within the cells, so users can see the full model loading and compilation pipeline.
  2. Added Device Selection: Included a widget to select between CPU, GPU, and AUTO.
  3. Documentation: Added a README.md and detailed comments explaining the LCM pipeline.

Ready for another look when you have a chance!

@jgespino
Copy link

@aleksandr-mokrov Could you please help assign to the team for review?

@aleksandr-mokrov
Copy link
Collaborator

@jgespino assigned, thank you for the PR! The team is off next week, so please expect a slight delay. We will be able to review the PR the week after next.

@openvino-dev-samples
Copy link
Collaborator

Hi @humbeaniket2006-max thanks for your contribution. 2 questions:

  1. Where is the inference part of this notebook?
  2. Since we already have a notebook to demonstrate LCM, can you explain more on what is the difference between them ? or any additional stuff you want to highlight ?

@humbeaniket2006-max
Copy link
Author

Hi! Thanks for the review.

  1. Regarding the Inference Part:
    I have just pushed a major refactor (in the latest commit) that removes the external CLI wrapper. The notebook now explicitly demonstrates the full inference pipeline using Python:
  • It loads the model using OVLatentConsistencyModelPipeline.
  • It compiles it for the selected device (CPU/GPU).
  • It runs the generation loop pipe(prompt, num_inference_steps=4).
  1. Difference from Existing LCM Notebooks:
    While there are existing notebooks for general LCM generation (like latent-consistency-models-image-generation), this notebook provides a unique value add:
  • Domain Specificity: It is tailored for synthetic biometric data generation (specifically Iris textures). This demonstrates a real-world use case of GenAI for medical/security research, rather than just general "text-to-image."
  • Optimum-Intel Native: It explicitly uses the optimum.intel library's OVLatentConsistencyModelPipeline class, serving as a clean, minimal reference for developers who want to use the Hugging Face + OpenVINO integration directly, without the complexity of manual model conversion or ControlNet layers found in other tutorials.

I believe this "UseCase-First" approach helps users understand how to apply OpenVINO to specific industry problems.

@@ -0,0 +1,106 @@
{
Copy link
Collaborator

@openvino-dev-samples openvino-dev-samples Feb 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the inference part is missing


Reply via ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposal] New Notebook: Biological Texture Generation (Iris) using Latent Consistency Models (LCM) & OpenVINO

5 participants

Comments