Advertisement
qq88

Untitled

Mar 16th, 2020
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 6.31 KB | None | 0 0
  1. venv) [qq88@qq88-pc fastai-v3]$ python app/server.py serve
  2. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarning: source code of class 'torch.nn.modules.loss.CrossEntropyLoss' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  3.  warnings.warn(msg, SourceChangeWarning)
  4. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarning: source code of class 'torch.nn.modules.container.Sequential' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  5.   warnings.warn(msg, SourceChangeWarning)
  6. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  7.  warnings.warn(msg, SourceChangeWarning)
  8. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarning: source code of class 'torch.nn.modules.batchnorm.BatchNorm2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  9.   warnings.warn(msg, SourceChangeWarning)
  10. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarning: source code of class 'torch.nn.modules.activation.ReLU' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  11.  warnings.warn(msg, SourceChangeWarning)
  12. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarning: source code of class 'torch.nn.modules.pooling.MaxPool2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  13.   warnings.warn(msg, SourceChangeWarning)
  14. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarning: source code of class 'torchvision.models.resnet.BasicBlock' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  15.  warnings.warn(msg, SourceChangeWarning)
  16. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarning: source code of class 'fastai.layers.AdaptiveConcatPool2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  17.   warnings.warn(msg, SourceChangeWarning)
  18. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarning: source code of class 'torch.nn.modules.pooling.AdaptiveAvgPool2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  19.  warnings.warn(msg, SourceChangeWarning)
  20. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarning: source code of class 'torch.nn.modules.pooling.AdaptiveMaxPool2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  21.   warnings.warn(msg, SourceChangeWarning)
  22. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarning: source code of class 'fastai.layers.Flatten' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
  23.  warnings.warn(msg, SourceChangeWarning)
  24. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarni by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to re
  25.   warnings.warn(msg, SourceChangeWarning)
  26. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarnicessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert t
  27.  warnings.warn(msg, SourceChangeWarning)
  28. /home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/torch/serialization.py:593: SourceChangeWarnissing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the
  29.   warnings.warn(msg, SourceChangeWarning)
  30. Traceback (most recent call last):
  31.   File "app/server.py", line 69, in <module>
  32.     uvicorn.run(app=app, host='0.0.0.0', port=5000, log_level="info")
  33.   File "/home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/uvicorn/main.py", line 278, in run
  34.     server.run()
  35.   File "/home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/uvicorn/main.py", line 303, in run
  36.     self.config.setup_event_loop()
  37.   File "/home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/uvicorn/config.py", line 214, in setu
  38.     loop_setup()
  39.   File "/home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/uvicorn/loops/auto.py", line 3, in au
  40.     import uvloop
  41.   File "/home/qq88/python-virtual-environments/venv/lib/python3.8/site-packages/uvloop/__init__.py", line 7, in <modu
  42.     from .loop import Loop as __BaseLoop  # NOQA
  43.   File "uvloop/includes/stdlib.pxi", line 114, in init uvloop.loop
  44. AttributeError: module 'sys' has no attribute 'set_coroutine_wrapper'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement