Downloads · 30 days
6
6% of all-time downloads
mjoshs/qwen-image-silicon-photonics
qwen-image-silicon-photonics is a text-to-image model from mjoshs. Use it when you need an image from a text prompt. The card lists the license as apache-2.0.
This is a specialized configuration of Qwen/Qwen-Image optimized for silicon photonics image generation using advanced prompt engineering and specialized parameters.
Downloads · 30 days
6
6% of all-time downloads
All-time downloads
109
Public
Repo size
—
Likes
1
Public
Click a slice to open those files.
.md5.2 KB · 51%
From the Hugging Face model README
This is a specialized configuration of Qwen/Qwen-Image optimized for silicon photonics image generation using advanced prompt engineering and specialized parameters.
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.
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)
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")
"Silicon waveguide cross-section with dimension labels, technical diagram, silicon photonics, engineering drawing, high quality, detailed"
"Ring resonator device with input and output waveguides, technical diagram, silicon photonics, high quality, detailed"
"Grating coupler for fiber-to-chip coupling, technical diagram, silicon photonics, engineering drawing, high quality, detailed"
"Mach-Zehnder modulator design for silicon photonics, technical schematic, engineering drawing, high quality, detailed"
"Silicon photodetector with integrated waveguide, technical diagram, silicon photonics, engineering drawing, high quality, detailed"
Contributions to improve the prompts and parameters are welcome! Please:
This model is released under the Apache 2.0 License.
Generated on 2025-09-24 14:24:05