Closed al-anatrini closed 2 years ago
Please re-launch Max from a terminal, open your model in nn~ and if it crashes post the message written in the terminal here !
Hey @caillonantoine!
Not OP but I've started getting the same error with the model trained today (the ones I made earlier still work).
Here's the stacktrace from Max:
nn~ - v1.3.1 - 2022 - Antoine Caillon
visit https://caillonantoine.github.io
using cpu
using cpu
libc++abi: terminating with uncaught exception of type c10::Error: isTuple()INTERNAL ASSERT FAILED at "/Users/distiller/project/conda/conda-bld/pytorch_1646755901135/work/aten/src/ATen/core/ivalue_inl.h":1916, please report a bug to PyTorch. Expected Tuple but got String
Exception raised from toTupleRef at /Users/distiller/project/conda/conda-bld/pytorch_1646755901135/work/aten/src/ATen/core/ivalue_inl.h:1916 (most recent call first):
frame #0: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 92 (0x12a3d365c in libc10.dylib)
frame #1: c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 72 (0x12a3d3884 in libc10.dylib)
frame #2: torch::jit::ConcreteSourceRangeUnpickler::unpickle() + 1120 (0x2894eb788 in libtorch_cpu.dylib)
frame #3: torch::jit::ConcreteSourceRangeUnpickler::findSourceRangeThatGenerated(torch::jit::SourceRange const&) + 32 (0x2894eba30 in libtorch_cpu.dylib)
frame #4: torch::jit::SourceRange::highlight(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const + 68 (0x2870a473c in libtorch_cpu.dylib)
frame #5: torch::jit::ErrorReport::what() const + 300 (0x28708c6b4 in libtorch_cpu.dylib)
frame #6: Backend::load(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) + 340 (0x118b6d9e8 in nn~)
frame #7: nn::nn(std::__1::vector<c74::min::atom, std::__1::allocator<c74::min::atom> > const&) + 2140 (0x118b5491c in nn~)
frame #8: c74::min::minwrap<nn, void>* c74::min::wrapper_new<nn>(c74::max::symbol const*, long, c74::max::atom const*) + 172 (0x118b60668 in nn~)
frame #9: typedmess_fun + 420 (0x1023a3004 in Max)
frame #10: newload_internal + 108 (0x1023f3da8 in Max)
frame #11: newload + 16 (0x1023f3d24 in Max)
frame #12: typedmess_fun + 420 (0x1023a3004 in Max)
frame #13: aeval + 1704 (0x102372378 in Max)
frame #14: atombuf_eval + 132 (0x102371c7c in Max)
frame #15: jnewobj_new + 1972 (0x1022efd08 in Max)
frame #16: typedmess_fun + 420 (0x1023a3004 in Max)
frame #17: object_new_typed_flags + 556 (0x1023ba5a0 in Max)
frame #18: jpatcher_newobject + 492 (0x10242e124 in Max)
frame #19: jpatcher_pastefromdictionary + 1416 (0x102435e4c in Max)
frame #20: jpatcher_replace + 1488 (0x10242ee0c in Max)
frame #21: object_method_typed + 164 (0x10237f574 in Max)
frame #22: jbox_swapme + 128 (0x10241e9dc in Max)
frame #23: jnewobj_enter + 1648 (0x1022f0c38 in Max)
frame #24: object_method_imp + 400 (0x10236cd20 in Max)
frame #25: jpatchercontroller_entertext_imp + 548 (0x1023079dc in Max)
frame #26: jpatchercontroller_entertext + 192 (0x102310470 in Max)
frame #27: TextfieldComponent::endEdit() + 556 (0x1021a2bc0 in Max)
frame #28: BoxComponent::endEdit() + 140 (0x102068300 in Max)
frame #29: TextfieldTextEditor::keyPressed(juce::KeyPress const&) + 756 (0x1021a1054 in Max)
frame #30: juce::ComponentPeer::handleKeyPress(juce::KeyPress const&) + 328 (0x1026c52ac in Max)
frame #31: juce::NSViewComponentPeer::handleKeyEvent(NSEvent*, bool) + 732 (0x1026f4f7c in Max)
frame #32: juce::NSViewComponentPeer::redirectKeyDown(NSEvent*) + 68 (0x1026f49a4 in Max)
frame #33: juce::JuceNSViewClass::keyDown(objc_object*, objc_selector*, NSEvent*) + 244 (0x1026f20d0 in Max)
frame #34: -[NSWindow(NSEventRouting) + + (0x1a30bfe88 in AppKit)
frame #35: -[NSWindow(NSEventRouting) + + (0x1a30be50c in AppKit)
frame #36: -[NSApplication(NSEvent) + + (0x1a30bd4b4 in AppKit)
frame #37: swizzle_SendEvent(objc_object*, objc_selector*, NSEvent*) + 124 (0x10234acd0 in Max)
frame #38: -[NSApplication + + (0x1a33770f4 in AppKit)
frame #39: -[NSApplication + + (0x1a2f3f008 in AppKit)
frame #40: Framework + _ZN4base3mac21CxxPersonalityRoutineEi14_Unwind_ActionyP17_Unwind_ExceptionP15_Unwind_Context (0x11c143e74 in Chromium)
frame #41: Framework + _ZN4base3mac21CxxPersonalityRoutineEi14_Unwind_ActionyP17_Unwind_ExceptionP15_Unwind_Context (0x11c142cf0 in Chromium)
frame #42: Framework + cef_time_delta (0x11c105b74 in Chromium)
frame #43: Framework + cef_time_delta (0x11c0d9560 in Chromium)
frame #44: Framework + __gxx_personality_v0 (0x11bdfe194 in Chromium)
frame #45: MaxCefEventLoopHandler::runMessageLoop() + 28 (0x1021e292c in Max)
frame #46: juce::JUCEApplicationBase::main() + 160 (0x1025f17d8 in Max)
frame #47: juce::JUCEApplicationBase::main(int, char const**) + 96 (0x1025f1718 in Max)
frame #48: start + 520 (0x10344508c in dyld)
And the training environment config:
name: rave
channels:
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2022.07.19=h06a4308_0
- certifi=2022.6.15=py39h06a4308_0
- ld_impl_linux-64=2.38=h1181459_1
- libffi=3.3=he6710b0_2
- libgcc-ng=11.2.0=h1234567_1
- libgomp=11.2.0=h1234567_1
- libstdcxx-ng=11.2.0=h1234567_1
- ncurses=6.3=h5eee18b_3
- openssl=1.1.1q=h7f8727e_0
- pip=22.1.2=py39h06a4308_0
- python=3.9.0=hdb3f193_2
- readline=8.1.2=h7f8727e_1
- setuptools=63.4.1=py39h06a4308_0
- sqlite=3.39.2=h5082296_0
- tk=8.6.12=h1ccaba5_0
- tzdata=2022a=hda174b7_0
- wheel=0.37.1=pyhd3eb1b0_0
- xz=5.2.5=h7f8727e_1
- zlib=1.2.12=h7f8727e_2
- pip:
- absl-py==1.2.0
- aiohttp==3.8.1
- aiosignal==1.2.0
- appdirs==1.4.4
- async-timeout==4.0.2
- attrs==22.1.0
- audioread==3.0.0
- cached-conv==2.3.6
- cachetools==5.2.0
- cffi==1.15.1
- charset-normalizer==2.1.1
- cycler==0.11.0
- decorator==5.1.1
- effortless-config==0.7.0
- einops==0.4.0
- fonttools==4.37.1
- frozenlist==1.3.1
- fsspec==2022.8.2
- google-auth==2.11.0
- google-auth-oauthlib==0.4.6
- gputil==1.4.0
- grpcio==1.48.1
- idna==3.3
- importlib-metadata==4.12.0
- joblib==1.1.0
- kiwisolver==1.4.4
- librosa==0.8.1
- llvmlite==0.39.0
- lmdb==1.3.0
- markdown==3.4.1
- markupsafe==2.1.1
- matplotlib==3.5.1
- multidict==6.0.2
- numba==0.56.0
- numpy==1.20.3
- oauthlib==3.2.0
- packaging==21.3
- pillow==9.2.0
- pooch==1.6.0
- protobuf==3.20.1
- pyasn1==0.4.8
- pyasn1-modules==0.2.8
- pycparser==2.21
- pydeprecate==0.3.2
- pyparsing==3.0.9
- python-dateutil==2.8.2
- pytorch-lightning==1.6.4
- pyyaml==6.0
- requests==2.28.1
- requests-oauthlib==1.3.1
- resampy==0.4.0
- rsa==4.9
- scikit-learn==1.0.2
- scipy==1.7.3
- six==1.16.0
- soundfile==0.10.3.post1
- tensorboard==2.8.0
- tensorboard-data-server==0.6.1
- tensorboard-plugin-wit==1.8.1
- termcolor==1.1.0
- threadpoolctl==3.1.0
- torch==1.12.1+cu113
- torchaudio==0.12.1+cu113
- torchmetrics==0.9.3
- torchvision==0.13.1+cu113
- tqdm==4.62.3
- typing-extensions==4.3.0
- udls==1.7
- urllib3==1.26.12
- werkzeug==2.2.2
- yarl==1.8.1
- zipp==3.8.1
I got an error related to CUDA toolkit version with the environment created from the default requirements file, so had to reinstall torch
with the version that works, and it bumped up the torch version to 1.12.1
. Going to check if it works with the required 1.11.0
.
Hi! So you're training a model with torch 1.12 while nn~ uses 1.11 ! You can either re-export the model using torch 1.11 (no need to re train) or re compile nn~ with torch 1.12! 😊
I'll update nn~ soon :)
Hi! So you're training a model with torch 1.12 while nn~ uses 1.11 ! You can either re-export the model using torch 1.11 (no need to re train) or re compile nn~ with torch 1.12! 😊
Ahh, didn't think about that, thanks!
Hi, I trained my own model and exported it with cached convolution to be used inside max. Nevertheless any time I give the path of the model as the argument of the nn~ object, max crashes. Below is the crash log with the crashed thread, I'm using an Apple M1 silicon machine. Any ideas what I might be doing wrong, any help is appreciated, thanks.