Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

memn2n_dialog Interactive mode error #155

@akshayvijapur

Description

@akshayvijapur

I am trying out example provided in NLP Architect named "memn2n_dialogue".

I did train using command

python examples/memn2n_dialog/train_model.py --task 5 --weights_save_path memn2n_weights.npz

Saw some errors in training
Epoch 0: 100%|█████████████████████████████████████████████████████████████████████████████████| 576/576 [00:14<00:00, 38.76minibatches/s]
Epoch 0: Validation Error: 0.3751085069444444

Training took some time and following files are generated.

    checkpoint
    data/
    memn2n_weights.npz.data-00000-of-00001
    memn2n_weights.npz.index
    memn2n_weights.npz.meta

Then I tried to do interactive mode using command
python examples/memn2n_dialog/interactive.py --weights_save_path memn2n_weights.npz

But encountering following error.

"/home/avijapur/.local/lib/python3.6/site-packages/tensorflow_core/python/training/saver.py"

 tensorflow.python.framework.errors_impl.DataLossError: Unable to open table file
 /home/avijapur/delete/nlparchitect/nlp-architect/exampleshts.npz.data-00000-of-00001: 
 Data loss: not an sstable   (bad magic number): perhaps your file is in a different file format 
 and you need torator?

python3.6 examples/memn2n_dialogue/interactive.py --weights_save_path m-of-00001

**Environment setup: **

  • OS (Linux/Mac OS): Linux
  • Python version:3.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions