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

运行python couplet.py出现编码错误 #83

Open
monkey-19890212 opened this issue May 31, 2023 · 2 comments
Open

运行python couplet.py出现编码错误 #83

monkey-19890212 opened this issue May 31, 2023 · 2 comments

Comments

@monkey-19890212
Copy link

No description provided.

@monkey-19890212
Copy link
Author

Skipping registering GPU devices...
2023-05-31 09:39:48.947261: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1159] Device interconnect StreamExecutor with strength 1 edge matrix:
2023-05-31 09:39:48.947267: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1165] 0
2023-05-31 09:39:48.947280: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1178] 0: N
2023-05-31 09:39:49.426814: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-05-31 09:39:49.426961: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties:
name: NVIDIA GeForce RTX 3050 major: 8 minor: 6 memoryClockRate(GHz): 1.792
pciBusID: 0000:07:00.0
2023-05-31 09:39:49.427063: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcudart.so.10.0'; dlerror: libcudart.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64
2023-05-31 09:39:49.427107: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcublas.so.10.0'; dlerror: libcublas.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64
2023-05-31 09:39:49.427157: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcufft.so.10.0'; dlerror: libcufft.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64
2023-05-31 09:39:49.427199: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcurand.so.10.0'; dlerror: libcurand.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64
2023-05-31 09:39:49.427232: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcusolver.so.10.0'; dlerror: libcusolver.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64
2023-05-31 09:39:49.427274: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcusparse.so.10.0'; dlerror: libcusparse.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64
2023-05-31 09:39:49.427326: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcudnn.so.7'; dlerror: libcudnn.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64
2023-05-31 09:39:49.427336: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1641] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2023-05-31 09:39:49.427351: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1159] Device interconnect StreamExecutor with strength 1 edge matrix:
2023-05-31 09:39:49.427357: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1165] 0
2023-05-31 09:39:49.427363: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1178] 0: N
Saving model. Step: 0, loss: 0.877713


Traceback (most recent call last):
File "couplet.py", line 15, in
m.train(50)
File "/root/chat/Chinese_Couplet/model.py", line 166, in train
print('src: ' + input_text)
UnicodeEncodeError: 'ascii' codec can't encode character '\u7389' in position 5: ordinal not in range(128)

@monkey-19890212 monkey-19890212 changed the title 运行python ls 运行python couplet.py出现编码错误 May 31, 2023
@monkey-19890212
Copy link
Author

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