CoolFace
Modelpublic

mjoshs/qwen-image-silicon-photonics

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
1likes11downloads
Model Card

Qwen-Image Silicon Photonics

This is a specialized configuration of Qwen/Qwen-Image optimized for silicon photonics image generation using advanced prompt engineering and specialized parameters.

๐ŸŽฏ Model Overview

This model uses the powerful Qwen-Image base model with specialized prompts and parameters to generate high-quality technical diagrams and layouts for silicon photonics applications.

๐Ÿš€ Key Features

  • โ€”High-Quality Technical Diagrams: Generates professional-grade silicon photonics illustrations
  • โ€”Accurate Component Representation: Properly depicts waveguides, modulators, resonators, and other photonic components
  • โ€”Engineering Standards: Follows technical drawing conventions and annotation standards
  • โ€”Educational Content: Suitable for academic and professional educational materials
  • โ€”Research Applications: Ideal for research visualization and technical documentation

๐Ÿ“Š Model Details

  • โ€”Base Model: Qwen/Qwen-Image
  • โ€”Specialization: Silicon photonics technical diagrams and device layouts
  • โ€”Optimized Parameters: 50 inference steps, 7.5 guidance scale
  • โ€”Resolution: 1024x1024 pixels
  • โ€”Quality: High-resolution technical diagrams

๐Ÿ’ป Usage

Hugging Face Inference API

python
import requests

API_URL = "https://api-inference.huggingface.co/models/mjoshs/qwen-image-silicon-photonics"
headers = {"Authorization": f"Bearer {hf_token}"}

def query(payload):
    response = requests.post(API_URL, headers=headers, json=payload)
    return response.content

# Generate silicon photonics image
image_bytes = query({
    "inputs": "Silicon waveguide cross-section with dimension labels, technical diagram, silicon photonics, engineering drawing, high quality, detailed",
    "parameters": {
        "width": 1024,
        "height": 1024,
        "num_inference_steps": 50,
        "guidance_scale": 7.5
    }
})

# Save image
with open("silicon_photonics_diagram.png", "wb") as f:
    f.write(image_bytes)

Local Usage

python
from diffusers import QwenImagePipeline

# Load the model
pipe = QwenImagePipeline.from_pretrained("Qwen/Qwen-Image")

# Generate silicon photonics image with specialized prompt
image = pipe(
    prompt="Silicon waveguide cross-section with dimension labels, technical diagram, silicon photonics, engineering drawing, high quality, detailed",
    negative_prompt="blurry, low quality, cartoon, artistic, hand-drawn, sketchy, unprofessional, low resolution, abstract, painting, artwork, colorful, decorative, text, words, watermark",
    num_inference_steps=50,
    guidance_scale=7.5,
    width=1024,
    height=1024
).images[0]

# Save image
image.save("silicon_photonics_diagram.png")

๐ŸŽจ Specialized Prompts

Silicon Waveguides

"Silicon waveguide cross-section with dimension labels, technical diagram, silicon photonics, engineering drawing, high quality, detailed"

Ring Resonators

"Ring resonator device with input and output waveguides, technical diagram, silicon photonics, high quality, detailed"

Grating Couplers

"Grating coupler for fiber-to-chip coupling, technical diagram, silicon photonics, engineering drawing, high quality, detailed"

Modulators

"Mach-Zehnder modulator design for silicon photonics, technical schematic, engineering drawing, high quality, detailed"

Photodetectors

"Silicon photodetector with integrated waveguide, technical diagram, silicon photonics, engineering drawing, high quality, detailed"

โš™๏ธ Optimal Parameters

  • โ€”Inference Steps: 50 (for high quality)
  • โ€”Guidance Scale: 7.5 (good balance)
  • โ€”Resolution: 1024x1024 (high detail)
  • โ€”Negative Prompt: Filters artistic styles

๐Ÿ”ฌ Applications

Educational

  • โ€”University course materials
  • โ€”Technical training programs
  • โ€”Research presentations
  • โ€”Academic publications

Industrial

  • โ€”Product documentation
  • โ€”Technical specifications
  • โ€”Design reviews
  • โ€”Manufacturing guides

Research

  • โ€”Paper illustrations
  • โ€”Conference presentations
  • โ€”Grant proposals
  • โ€”Technical reports

๐Ÿ“ˆ Performance

  • โ€”Generation Time: ~5-8 seconds per image (1024x1024, 50 steps)
  • โ€”Quality: High-resolution technical diagrams
  • โ€”Accuracy: Technically accurate silicon photonics representations
  • โ€”Consistency: Reliable output for engineering applications

๐Ÿค Contributing

Contributions to improve the prompts and parameters are welcome! Please:

  1. 1.Fork the repository
  2. 2.Create a feature branch
  3. 3.Submit a pull request with improvements
  4. 4.Include test cases and documentation

๐Ÿ“„ License

This model is released under the Apache 2.0 License.

๐Ÿ™ Acknowledgments

  • โ€”Qwen Team: For the base Qwen-Image model
  • โ€”Hugging Face: For the platform and tools
  • โ€”Silicon Photonics Community: For domain expertise

Generated on 2025-09-24 14:24:05