1+ {
2+ "nbformat" : 4 ,
3+ "nbformat_minor" : 0 ,
4+ "metadata" : {
5+ "colab" : {
6+ "provenance" : [],
7+ "authorship_tag" : " ABX9TyNTldFSpzuKRRHsnd55P/V9" ,
8+ "include_colab_link" : true
9+ },
10+ "kernelspec" : {
11+ "name" : " python3" ,
12+ "display_name" : " Python 3"
13+ },
14+ "language_info" : {
15+ "name" : " python"
16+ }
17+ },
18+ "cells" : [
19+ {
20+ "cell_type" : " markdown" ,
21+ "metadata" : {
22+ "id" : " view-in-github" ,
23+ "colab_type" : " text"
24+ },
25+ "source" : [
26+ " <a href=\" https://colab.research.google.com/github/peelidramuk/C/blob/master/colab-playground/tf-demo.ipynb\" target=\" _parent\" ><img src=\" https://colab.research.google.com/assets/colab-badge.svg\" alt=\" Open In Colab\" /></a>"
27+ ]
28+ },
29+ {
30+ "cell_type" : " code" ,
31+ "execution_count" : 1 ,
32+ "metadata" : {
33+ "colab" : {
34+ "base_uri" : " https://localhost:8080/"
35+ },
36+ "id" : " vXybH_yceYG9" ,
37+ "outputId" : " 2837531a-7550-45ce-f5ee-05324a11ed69"
38+ },
39+ "outputs" : [
40+ {
41+ "output_type" : " stream" ,
42+ "name" : " stdout" ,
43+ "text" : [
44+ " Cloning into 'models'...\n " ,
45+ " remote: Enumerating objects: 102123, done.\u001b [K\n " ,
46+ " remote: Counting objects: 100% (257/257), done.\u001b [K\n " ,
47+ " remote: Compressing objects: 100% (134/134), done.\u001b [K\n " ,
48+ " remote: Total 102123 (delta 171), reused 123 (delta 123), pack-reused 101866 (from 3)\u001b [K\n " ,
49+ " Receiving objects: 100% (102123/102123), 629.39 MiB | 36.58 MiB/s, done.\n " ,
50+ " Resolving deltas: 100% (72773/72773), done.\n "
51+ ]
52+ }
53+ ],
54+ "source" : [
55+ " !git clone https://github.com/tensorflow/models.git"
56+ ]
57+ },
58+ {
59+ "cell_type" : " code" ,
60+ "source" : [
61+ " !pip install -q tf-slim\n " ,
62+ " !sudo apt-get install -y protobuf-compiler\n " ,
63+ " !cd models/research && protoc object_detection/protos/*.proto --python_out=.\n " ,
64+ " !cp models/research/object_detection/packages/tf2/setup.py\n " ,
65+ " !python3 setup.py install"
66+ ],
67+ "metadata" : {
68+ "colab" : {
69+ "base_uri" : " https://localhost:8080/"
70+ },
71+ "id" : " Ogsz_XV0eo3p" ,
72+ "outputId" : " efd0dae1-8d08-46c1-ad19-fef0acdd85a0"
73+ },
74+ "execution_count" : 2 ,
75+ "outputs" : [
76+ {
77+ "output_type" : " stream" ,
78+ "name" : " stdout" ,
79+ "text" : [
80+ " Reading package lists... Done\n " ,
81+ " Building dependency tree... Done\n " ,
82+ " Reading state information... Done\n " ,
83+ " protobuf-compiler is already the newest version (3.12.4-1ubuntu7.22.04.2).\n " ,
84+ " 0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.\n " ,
85+ " cp: missing destination file operand after 'models/research/object_detection/packages/tf2/setup.py'\n " ,
86+ " Try 'cp --help' for more information.\n " ,
87+ " python3: can't open file '/content/setup.py': [Errno 2] No such file or directory\n "
88+ ]
89+ }
90+ ]
91+ },
92+ {
93+ "cell_type" : " code" ,
94+ "source" : [
95+ " import tensorflow as tf\n " ,
96+ " print(\" Tensorflow version:\" , tf.__version__)"
97+ ],
98+ "metadata" : {
99+ "colab" : {
100+ "base_uri" : " https://localhost:8080/"
101+ },
102+ "id" : " guGNF5JrfOau" ,
103+ "outputId" : " fceb962c-7d02-42e3-d998-796dd371d74f"
104+ },
105+ "execution_count" : 3 ,
106+ "outputs" : [
107+ {
108+ "output_type" : " stream" ,
109+ "name" : " stdout" ,
110+ "text" : [
111+ " Tensorflow version: 2.18.0\n "
112+ ]
113+ }
114+ ]
115+ }
116+ ]
117+ }
0 commit comments