torralba-lab / im2recipe

Code supporting the CVPR 2017 paper "Learning Cross-modal Embeddings for Cooking Recipes and Food Images"
MIT License
365 stars 89 forks source link

Training skip-instructions model #16

Closed marielvanstav closed 6 years ago

marielvanstav commented 6 years ago

EDIT: I now realise I should have opened this issue at https://github.com/nhynes/th-skip/issues. I opened the same issue there.

Hi! I’m trying to train the skip-instructions model on the data that you provided. When I run the code moon main.moon .., I get the following error:

/tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [96,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [97,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [98,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [99,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [100,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [101,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [102,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [103,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [104,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [105,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [106,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [107,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [108,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [109,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [110,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [111,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [112,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [113,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [114,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [115,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [116,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [117,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [118,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [119,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [120,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [121,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [122,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [123,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [124,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [125,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [126,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [127,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [64,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [65,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [66,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [67,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [68,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [69,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [70,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [71,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [72,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [73,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [74,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [75,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [76,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [77,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [78,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [79,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [80,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [81,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [82,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [83,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [84,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [85,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [86,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [87,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [88,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [89,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [90,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [91,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [92,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [93,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [94,0,0] Assertion srcIndex < srcSelectDimSize failed. /tmp/luarocks_cutorch-scm-1-9819/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [29,0,0], thread: [95,0,0] Assertion srcIndex < srcSelectDimSize failed. THCudaCheck FAIL file=/tmp/luarocks_cutorch-scm-1-9819/cutorch/init.c line=246 error=59 : device-side assert triggered moon: ...mvstaver/torch/install/share/lua/5.1/threads/threads.lua:179: [thread 1 endcallback] /home/mvstaver/torch/install/share/lua/5.1/nn/Container.lua:67: In 3 module of nn.Sequential: /home/mvstaver/torch/install/share/lua/5.1/cudnn/RNN.lua:582: cuda runtime error (59) : device-side assert triggered at /tmp/luarocks_cutorch-scm-1-9819/cutorch/init.c:246 stack traceback: [C]: in function 'synchronize' /home/mvstaver/torch/install/share/lua/5.1/cudnn/RNN.lua:582: in function </home/mvstaver/torch/install/share/lua/5.1/cudnn/RNN.lua:404> [C]: in function 'xpcall' /home/mvstaver/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors' ...e/mvstaver/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward' ...ratch/mvstaver/im2recipe_code/th-skip/model/Decoder.moon:41: in function 'forward' /var/scratch/mvstaver/im2recipe_code/th-skip/model/ST.moon:32: in function 'forward' ...ratch/mvstaver/im2recipe_code/th-skip/drivers/train.moon:39: in function <...ratch/mvstaver/im2recipe_code/th-skip/drivers/train.moon:35> [C]: in function 'xpcall' ...mvstaver/torch/install/share/lua/5.1/threads/threads.lua:174: in function 'dojob' ...mvstaver/torch/install/share/lua/5.1/threads/threads.lua:223: in function 'train' main.moon:66: in function 'moonscript_chunk' ...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:86: in function <...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:84> [C]: in function 'xpcall' ...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:99: in function <...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:47> [C]: at 0x004064f0 WARNING: If you see a stack trace below, it doesn't point to the place where this error occurred. Please use only the one above. stack traceback: [C]: in function 'error' /home/mvstaver/torch/install/share/lua/5.1/nn/Container.lua:67: in function 'rethrowErrors' ...e/mvstaver/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward' ...ratch/mvstaver/im2recipe_code/th-skip/model/Decoder.moon:41: in function 'forward' /var/scratch/mvstaver/im2recipe_code/th-skip/model/ST.moon:32: in function 'forward' ...ratch/mvstaver/im2recipe_code/th-skip/drivers/train.moon:39: in function <...ratch/mvstaver/im2recipe_code/th-skip/drivers/train.moon:35> [C]: in function 'xpcall' ...mvstaver/torch/install/share/lua/5.1/threads/threads.lua:174: in function 'dojob' ...mvstaver/torch/install/share/lua/5.1/threads/threads.lua:223: in function 'train' main.moon:66: in function 'moonscript_chunk' ...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:86: in function <...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:84> [C]: in function 'xpcall' ...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:99: in function <...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:47> [C]: at 0x004064f0 stack traceback: [C]: in function 'error' ...mvstaver/torch/install/share/lua/5.1/threads/threads.lua:179: in function 'dojob' ...mvstaver/torch/install/share/lua/5.1/threads/threads.lua:223: in function 'train' main.moon:54: (66) in main chunk

Given that the problem seems to be related to out-of-bounds indices, I feel like it may have something to do with the following piece of code from th-skip/scripts/mk_dataset.py:

with open(os.path.join(DATA_ROOT,args.vocab),'r') as f_vocab:
    vocab = {w.rstrip(): i+3 for i, w in enumerate(f_vocab)}
    # +1 for lua, UNK, and </r>
    vocab['UNK'] = 1

I tried to run this with i+1 and i+2 instead, but to no avail.

Do you have any idea what could be the cause of this error?

Hope to hear from you!

marielvanstav commented 6 years ago

Sorry, I now realize this is a duplicate of https://github.com/torralba-lab/im2recipe/issues/9. I closed the issue.