Created
May 11, 2023 14:46
-
-
Save avilum/c4c595e972ba56384973d901addd3877 to your computer and use it in GitHub Desktop.
Visualizing model inside google Colab.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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