master
/ coding_here.ipynb

coding_here.ipynb @358256aview markup · raw · history · blame

Notebook
In [1]:
print('Hello Mo!')
Hello Mo!
In [5]:
b=2
a = b +1
print(a)
3
In [6]:
import torch
In [9]:
a = torch.zeros(3)
print(a)
tensor([0., 0., 0.])
In [1]:
import mindspore.nn as nn
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-39d0ce7864e1> in <module>
----> 1 import mindspore.nn as nn

ImportError: No module named 'mindspore'
In [1]:
pip install mindspore
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting mindspore
  ERROR: Could not find a version that satisfies the requirement mindspore (from versions: none)
ERROR: No matching distribution found for mindspore
WARNING: You are using pip version 19.1.1, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Note: you may need to restart the kernel to use updated packages.
In [2]:
pip install mindspore
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting mindspore
  ERROR: Could not find a version that satisfies the requirement mindspore (from versions: none)
ERROR: No matching distribution found for mindspore
WARNING: You are using pip version 19.1.1, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Note: you may need to restart the kernel to use updated packages.
In [2]:
!pip list --format=columns
Package              Version     
-------------------- ------------
absl-py              0.7.1       
alembic              1.4.2       
appdirs              1.4.4       
astor                0.7.1       
async-generator      1.10        
attrs                19.3.0      
Augmentor            0.2.8       
backcall             0.2.0       
baytune              0.3.10      
bleach               3.1.5       
boto3                1.14.34     
botocore             1.17.34     
certifi              2020.6.20   
certipy              0.1.3       
cffi                 1.14.1      
chardet              3.0.4       
click                7.1.2       
configparser         4.0.2       
cryptography         3.0         
cycler               0.10.0      
Cython               0.29.20     
decorator            4.4.2       
defusedxml           0.6.0       
distlib              0.3.1       
docutils             0.15.2      
entrypoints          0.3         
et-xmlfile           1.0.1       
filelock             3.0.12      
func-timeout         4.3.5       
future               0.18.2      
gast                 0.2.2       
graphviz             0.14        
grpcio               1.20.1      
h5py                 2.9.0       
idna                 2.10        
imageio              2.8.0       
imgaug               0.4.0       
importlib-metadata   0.23        
importlib-resources  3.0.0       
ipdb                 0.13.2      
ipykernel            5.3.4       
ipython              7.9.0       
ipython-genutils     0.2.0       
ipywidgets           7.4.0       
jdcal                1.4.1       
jedi                 0.17.2      
jieba                0.42.1      
Jinja2               2.11.2      
jmespath             0.10.0      
joblib               0.14.1      
jsonschema           3.2.0       
jupyter-client       6.1.6       
jupyter-core         4.6.3       
jupyterhub           1.0.0       
jupyterlab           1.0.0a1     
jupyterlab-server    0.2.0       
Keras                2.3.1       
Keras-Applications   1.0.7       
Keras-Preprocessing  1.0.9       
kiwisolver           1.1.0       
Mako                 1.1.3       
Markdown             3.1         
MarkupSafe           1.1.1       
matplotlib           3.0.3       
minepy               1.2.4       
minio                5.0.10      
mistune              0.8.4       
mock                 2.0.0       
more-itertools       7.2.0       
nbconvert            5.6.1       
nbformat             5.0.7       
networkx             2.4         
nltk                 3.5         
notebook             6.0.3       
numpy                1.16.0      
oauthlib             3.1.0       
opencv-python        4.2.0.34    
openpyxl             2.6.4       
packaging            20.4        
pamela               1.0.0       
pandas               0.24.2      
pandocfilters        1.4.2       
parso                0.7.1       
pbr                  5.2.0       
pexpect              4.8.0       
pickleshare          0.7.5       
Pillow               7.2.0       
pip                  19.1.1      
plotly               4.8.1       
prometheus-client    0.8.0       
prompt-toolkit       2.0.10      
protobuf             3.12.4      
ptyprocess           0.6.0       
pycparser            2.20        
pydot                1.4.1       
pyenchant            3.1.1       
Pygments             2.6.1       
pyOpenSSL            19.1.0      
pyparsing            2.4.7       
pyrsistent           0.16.0      
python-dateutil      2.8.0       
python-editor        1.0.4       
pytz                 2020.1      
PyWavelets           1.1.1       
PyYAML               5.3.1       
pyzmq                19.0.2      
regex                2020.7.14   
requests             2.24.0      
retrying             1.3.3       
s3transfer           0.3.3       
sacremoses           0.0.43      
scikit-image         0.15.0      
scikit-learn         0.22.2.post1
scipy                1.4.1       
seaborn              0.9.1       
Send2Trash           1.5.0       
sentencepiece        0.1.91      
setuptools           49.2.0      
Shapely              1.7.0       
six                  1.12.0      
SQLAlchemy           1.3.18      
stevedore            1.32.0      
tensorboard          1.13.1      
tensorboardX         2.0         
tensorflow           1.13.1      
tensorflow-estimator 1.13.0      
termcolor            1.1.0       
terminado            0.8.3       
testpath             0.4.4       
tokenizers           0.5.2       
torch                1.4.0+cpu   
torchtext            0.6.0       
torchvision          0.5.0+cpu   
tornado              6.0.4       
tqdm                 4.46.1      
traitlets            4.3.3       
transformers         2.5.1       
urllib3              1.25.10     
virtualenv           20.0.29     
virtualenv-clone     0.5.4       
virtualenvwrapper    4.8.4       
wcwidth              0.2.5       
webencodings         0.5.1       
Werkzeug             0.15.2      
wheel                0.34.2      
widgetsnbextension   3.4.2       
word2vec             0.10.6      
xlrd                 1.2.0       
yellowbrick          1.1         
zipp                 0.6.0       
WARNING: You are using pip version 19.1.1, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
In [3]:
!7zx ./datasets/sumansid-facemask-dataset-momodel/facemask-dataset.zip -d
/bin/sh: 1: 7zx: not found
In [4]:
!7zx ./datasets/sumansid-facemask-dataset-momodel/facemask-dataset.zip
/bin/sh: 1: 7zx: not found
In [ ]: