Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: SarcasmDetection/resource/text_model/weights/model_wv.json' #3

Open
monajalal opened this issue Mar 4, 2018 · 0 comments

Comments

@monajalal
Copy link

Can you please upload this file as well?


[jalal@goku src]$ python sarcasm_detection_model_CNN_LSTM_DNN_word2vec.py 
Using TensorFlow backend.
2018-03-03 20:58:10.558623: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2018-03-03 20:58:10.558655: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2018-03-03 20:58:10.558664: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2018-03-03 20:58:10.558671: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2018-03-03 20:58:10.558678: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
2018-03-03 20:58:10.860328: I tensorflow/core/common_runtime/gpu/gpu_device.cc:955] Found device 0 with properties: 
name: GeForce GTX 1080 Ti
major: 6 minor: 1 memoryClockRate (GHz) 1.6705
pciBusID 0000:05:00.0
Total memory: 10.92GiB
Free memory: 10.17GiB
2018-03-03 20:58:11.117002: W tensorflow/stream_executor/cuda/cuda_driver.cc:523] A non-primary context 0x55a328acfc60 exists before initializing the StreamExecutor. We haven't verified StreamExecutor works with that.
2018-03-03 20:58:11.117900: I tensorflow/core/common_runtime/gpu/gpu_device.cc:955] Found device 1 with properties: 
name: GeForce GTX 1080 Ti
major: 6 minor: 1 memoryClockRate (GHz) 1.6705
pciBusID 0000:06:00.0
Total memory: 10.92GiB
Free memory: 10.76GiB
2018-03-03 20:58:11.118705: I tensorflow/core/common_runtime/gpu/gpu_device.cc:976] DMA: 0 1 
2018-03-03 20:58:11.118723: I tensorflow/core/common_runtime/gpu/gpu_device.cc:986] 0:   Y Y 
2018-03-03 20:58:11.118730: I tensorflow/core/common_runtime/gpu/gpu_device.cc:986] 1:   Y Y 
2018-03-03 20:58:11.118744: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:05:00.0)
2018-03-03 20:58:11.118752: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:1) -> (device: 1, name: GeForce GTX 1080 Ti, pci bus id: 0000:06:00.0)
Loading resource...
initializing...
test_maxlen 30
Traceback (most recent call last):
  File "sarcasm_detection_model_CNN_LSTM_DNN_word2vec.py", line 285, in <module>
    t.load_trained_model()
  File "sarcasm_detection_model_CNN_LSTM_DNN_word2vec.py", line 187, in load_trained_model
    self.__load_model(self._model_file + 'model_wv.json', self._model_file + weight_file)
  File "sarcasm_detection_model_CNN_LSTM_DNN_word2vec.py", line 192, in __load_model
    self.model = model_from_json(open(model_path).read())
FileNotFoundError: [Errno 2] No such file or directory: 'SarcasmDetection/resource/text_model/weights/model_wv.json'
[jalal@goku src]$ ls ../resource/text_model
text_model/    text_model_2D/ 
[jalal@goku src]$ ls ../resource/text_model/
TestResults.txt.analysis  vocab_list.txt  weights
[jalal@goku src]$ ls ../resource/text_model/weights/
model.json       weights.01__.hdf5  weights.03__.hdf5  weights.05__.hdf5  weights.07__.hdf5  weights.09__.hdf5
model.json.hdf5  weights.02__.hdf5  weights.04__.hdf5  weights.06__.hdf5  weights.08__.hdf5  weights.10__.hdf5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant