Today, when I imported the face recognition model built by keras into the Django framework to run, the system reported oseeeor, and the display file does not exist, but I can run it normally when I run the model alone. Finally, we get the following two solutions.
Solution
Method 1
This method is a problem encountered by others when I was looking for a solution, although it did not solve my problem:)
it may be that the environment of the framework was destroyed after the model was imported, and the file path was changed, which can be solved by re installing py
pip3 uninstall h5py
pip3 installl h5py
Method 2: path problem
It seems that this solution has not been mentioned, but it has solved my problem
although the relative path can be used to run the model alone, it should be changed to absolute path under Django. As for why, I’m not sure.
Read More:
- TypeError(‘Keyword argument not understood:‘, ‘***‘) in keras.models load_model
- After the model is instantiated by keras, the result returns nonetype
- Keras Model AttributeError:’str‘ object has no attribute ’call‘
- Keras saves save() and save in the model_ weights()
- Vs2017 C + + cannot open source file: “sdkddkver. H”, “stdio. H”, “TCHAR. H”
- Pandas read the CSV file error filenotf oundError:File b ‘***.csv’ does not exist
- Error importing keras in jupyter Notebook: modulenotfounderror: no module named ‘keras’ solution
- [Solved] ERROR Error: No module factory availabl at Object.PROJECT_CONFIG_JSON_NOT_VALID_OR_NOT_EXIST ‘Error
- Keras:KeyError:‘Failed to format this callback filepath:{val_loss:.4f}.h5. Reason: \‘val_loss\‘‘
- When using quartus for function simulation, “testbench” appears_ vector_ input_ The solution of “file option does not exist”
- gcc /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
- OSError: libnccl.so.2: cannot open shared object file: No such file or directory
- Solve fatal error: ‘FFI. H’ file not found
- [Solved] Golden Gate ggsci start manager: ERROR: Parameter file mgr.prm does not exist.
- Maven compilation error: package does not exist jar package does not exist
- STM32 added firmware library, but could not find h file
- Dxly solves the fatal error of AutoCAD2006: unhandled access violation reading 0x0000 exception at 6532b0h.
- Cannot open include file: ‘io.h‘: No such file or directory
- Python reports oserror: initializing from file failed
- error Newline required at end of file but not found eol-last