Skip to content

Commit d55144a

Browse files
committed
remove gray scale
remove gray scale
1 parent be23abc commit d55144a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

data_augmentation_with_python_chapter_6.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@
9797
{
9898
"cell_type": "code",
9999
"source": [
100-
"#url = 'https://github.com/PacktPublishing/Data-Augmentation-with-Python'\n",
101-
"url = 'https://github.com/duchaba/Data-Augmentation-with-Python'\n",
100+
"url = 'https://github.com/PacktPublishing/Data-Augmentation-with-Python'\n",
102101
"!git clone {url}"
103102
],
104103
"metadata": {
@@ -684,7 +683,7 @@
684683
{
685684
"cell_type": "code",
686685
"source": [
687-
"df_page = pandas.DataFrame([pluto.orig_christie_page], columns=['page'])\n",
686+
"df_page = pandas.DataFrame([pluto.orig_dickens_page], columns=['page'])\n",
688687
"pluto.print_aug_ai_word2vec(df_page,\n",
689688
" col_dest='page',\n",
690689
" action='substitute',\n",
@@ -864,7 +863,7 @@
864863
},
865864
"outputs": [],
866865
"source": [
867-
"df_page = pandas.DataFrame([pluto.orig_christie_page], columns=['page'])\n",
866+
"df_page = pandas.DataFrame([pluto.orig_melville_page], columns=['page'])\n",
868867
"pluto.print_aug_ai_bert(df_page,\n",
869868
" col_dest='page',\n",
870869
" action='substitute',\n",
@@ -969,7 +968,7 @@
969968
},
970969
"outputs": [],
971970
"source": [
972-
"df_page = pandas.DataFrame([pluto.orig_christie_page], columns=['page'])\n",
971+
"df_page = pandas.DataFrame([pluto.orig_melville_page], columns=['page'])\n",
973972
"pluto.print_aug_ai_bert(df_page,\n",
974973
" col_dest='page',\n",
975974
" model_path='roberta-base',\n",
@@ -1349,7 +1348,8 @@
13491348
{
13501349
"cell_type": "code",
13511350
"source": [
1352-
"# end of chapter 6"
1351+
"# end of chapter 6\n",
1352+
"print('end of chatper 6')"
13531353
],
13541354
"metadata": {
13551355
"id": "tzS8W--FEXHD"

pluto/pluto_chapter_3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _drop_image(self,canvas, fname=None,format=".jpg",dname="Data-Augmentation-w
150150
fn = dname + "/pluto" + str(self.fname_id) + format
151151
else:
152152
fn = fname
153-
canvas.savefig(fn, cmap="Greys", bbox_inches="tight", pad_inches=0.25)
153+
canvas.savefig(fn, bbox_inches="tight", pad_inches=0.25)
154154
return
155155
#
156156
@add_method(PacktDataAug)

pluto/pluto_chapter_4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _drop_image(self,canvas, fname=None,format=".jpg",dname="Data-Augmentation-w
150150
fn = dname + "/pluto" + str(self.fname_id) + format
151151
else:
152152
fn = fname
153-
canvas.savefig(fn, cmap="Greys", bbox_inches="tight", pad_inches=0.25)
153+
canvas.savefig(fn, bbox_inches="tight", pad_inches=0.25)
154154
return
155155
#
156156
@add_method(PacktDataAug)

0 commit comments

Comments
 (0)