Skip to content

Instantly share code, notes, and snippets.

@avilum
Created May 11, 2023 14:46
Show Gist options
  • Save avilum/c4c595e972ba56384973d901addd3877 to your computer and use it in GitHub Desktop.
Save avilum/c4c595e972ba56384973d901addd3877 to your computer and use it in GitHub Desktop.
Visualizing model inside google Colab.
import IPython
import threading
import time
import os
def display_netron(path):
os.system(f'netron {path}')
thread = threading.Thread(target=display_netron, args=(output_path,))
thread.start()
time.sleep(1)
display(IPython.display.IFrame(f"http://localhost:8080", width=1000, height=1000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment