Skip to content

Instantly share code, notes, and snippets.

View bearx's full-sized avatar
🎯
Focusing

Bearx bearx

🎯
Focusing
  • X-Humanoid (Beijing Humanoid Robot Innovation Center)
  • Beijing, China
  • 01:08 (UTC +08:00)
View GitHub Profile
@bearx
bearx / onnx2pytorch.py
Created May 16, 2023 02:40 — forked from qinjian623/onnx2pytorch.py
ONNX file to Pytorch model
import onnx
import struct
import torch
import torch.nn as nn
import torchvision as tv
import warnings
# enum DataType {
# UNDEFINED = 0;