Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design2
/
2013104122
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
최성원
2021-06-06 21:48:18 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
df699f008b8dae515842238ed3369707ddd1878a
df699f00
1 parent
ae75f4af
upload
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
codes/Random_Scale.py
codes/Random_Scale.py
View file @
df699f0
...
...
@@ -9,8 +9,8 @@ class randomScale(object):
def
__call__
(
self
,
img
):
#if random.randrange(0,4
) == 0:
#
return img
if
random
.
randrange
(
0
,
2
)
==
0
:
return
img
self
.
d
=
random
.
randrange
(
0
,
2
)
img
=
numpy
.
array
(
img
)
img_dtype
=
img
.
dtype
...
...
Please
register
or
login
to post a comment