Skip to content

Glossary: Vision and Image Generation

if __name__ == "__main__"

Also written: __main__ guard

A Python block that runs only when you run the file itself, not when another script imports it.

Where the book teaches it