Coder Social home page Coder Social logo

Comments (9)

karenz17 avatar karenz17 commented on May 29, 2024 8

Hi, thanks for sharing this work

I'm having a segmentation fault when running online_demo code. Here is the error:

UserWarning: The use of the transforms.Scale transform is deprecated, please use transforms.Resize instead.
  warnings.warn("The use of the transforms.Scale transform is deprecated, " +
Build Executor...
Segmentation fault (core dumped)

I found that the program is crashing in line 35 of the main.py file and I'm currently using the LLVM-4.0.0 on ubuntu 16.04.

relay_module, params = tvm.relay.frontend.from_onnx(onnx_model, shape=input_shapes)

Can anyone replicate this problem?

Thanks for your help.
Hi, we met the same problem as you yesterday, and later we reinstalled oonx, pip install onnx==1.5.0 to solve the segmentation fault. And in main.py, line 37, change tvm.relay.build to tvm.relay.build_module.build. Online_demo code works now.

from temporal-shift-module.

yaoyaoding avatar yaoyaoding commented on May 29, 2024

Hi,
This line transforms the onnx model to tvm relay module.

  1. Can you check that your tvm and onnx have been installed correctly and are the latest version?
  2. Also, you can debug the program and step into this function to figure out which part causes the problem.

from temporal-shift-module.

karenz17 avatar karenz17 commented on May 29, 2024

I have the same problem,

Hi, thanks for sharing this work

I'm having a segmentation fault when running online_demo code. Here is the error:

UserWarning: The use of the transforms.Scale transform is deprecated, please use transforms.Resize instead.
  warnings.warn("The use of the transforms.Scale transform is deprecated, " +
Build Executor...
Segmentation fault (core dumped)

I found that the program is crashing in line 35 of the main.py file and I'm currently using the LLVM-4.0.0 on ubuntu 16.04.

relay_module, params = tvm.relay.frontend.from_onnx(onnx_model, shape=input_shapes)

Can anyone replicate this problem?

Thanks for your help.

I have the same problem, how do you solve it?

from temporal-shift-module.

tonylins avatar tonylins commented on May 29, 2024

Hi, it is hard to diagnose the problem with just segmentation fault. Could you please provide more error log regarding the problem, or provide a minimal script to reproduce the error?

from temporal-shift-module.

tonylins avatar tonylins commented on May 29, 2024

Hi @rachillesf, can you solve the problem using the solution from @karenz17 ?

from temporal-shift-module.

PuddingPengChen avatar PuddingPengChen commented on May 29, 2024

I solve the problem using the solution from @karenz17 in my laptop with ubuntu18.10. By the way, it seems not need opencv4 to run the online-demo, i just use the opencv3.5.

from temporal-shift-module.

zhangyuan1994511 avatar zhangyuan1994511 commented on May 29, 2024

@karenz17 Hi, can you provided the version of tvm, onnx, LLVM, torch and python? Thank you very much!

from temporal-shift-module.

oscarkfpang avatar oscarkfpang commented on May 29, 2024

Hi I experienced the same problem of Segmentation Fault while running the online demo. I tried the above solution of re-installing the onnx==1.5.0, but I haven't changed the line 37 of main.py. And the demo works now.

Here's my environment:
Ubuntu 18.04, Cuda 9.1
pytorch=1.2.0, torchvision=0.4.0 installed using pip3 install torch==1.2.0+cu92 torchvision==0.4.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html
onnx=1.5.0

from temporal-shift-module.

tonylins avatar tonylins commented on May 29, 2024

Hi, I have updated the repo to use onnx-simplifier and some other minor changes. The demo should directly work now. Feel free to reopen if the error persists. Thanks!

from temporal-shift-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.