Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
7c8cbba0
Commit
7c8cbba0
authored
Jun 03, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove some mentions of tensorpack in dataflow
parent
816d04e6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
tensorpack/dataflow/__init__.py
tensorpack/dataflow/__init__.py
+2
-2
tensorpack/dataflow/imgaug/base.py
tensorpack/dataflow/imgaug/base.py
+1
-1
tensorpack/dataflow/imgaug/external.py
tensorpack/dataflow/imgaug/external.py
+3
-1
tensorpack/dataflow/remote.py
tensorpack/dataflow/remote.py
+1
-1
tensorpack/utils/develop.py
tensorpack/utils/develop.py
+1
-1
tensorpack/utils/utils.py
tensorpack/utils/utils.py
+0
-2
No files found.
tensorpack/dataflow/__init__.py
View file @
7c8cbba0
...
@@ -48,8 +48,8 @@ for _, module_name, __ in iter_modules(
...
@@ -48,8 +48,8 @@ for _, module_name, __ in iter_modules(
_global_import
(
module_name
)
_global_import
(
module_name
)
globals
()[
'dataset'
]
=
LazyLoader
(
'dataset'
,
globals
(),
'tensorpack.dataflow
.dataset'
)
globals
()[
'dataset'
]
=
LazyLoader
(
'dataset'
,
globals
(),
__name__
+
'
.dataset'
)
globals
()[
'imgaug'
]
=
LazyLoader
(
'imgaug'
,
globals
(),
'tensorpack.dataflow
.imgaug'
)
globals
()[
'imgaug'
]
=
LazyLoader
(
'imgaug'
,
globals
(),
__name__
+
'
.imgaug'
)
del
LazyLoader
del
LazyLoader
...
...
tensorpack/dataflow/imgaug/base.py
View file @
7c8cbba0
...
@@ -48,7 +48,7 @@ class Augmentor(object):
...
@@ -48,7 +48,7 @@ class Augmentor(object):
is responsible for calling this method (once or more times) in the **process that uses the augmentor**
is responsible for calling this method (once or more times) in the **process that uses the augmentor**
before using it.
before using it.
If you use
tensorpack's
built-in augmentation dataflow (:class:`AugmentImageComponent`, etc),
If you use
a
built-in augmentation dataflow (:class:`AugmentImageComponent`, etc),
this method will be called in the dataflow's own `reset_state` method.
this method will be called in the dataflow's own `reset_state` method.
If you use Python≥3.7 on Unix, this method will be automatically called after fork,
If you use Python≥3.7 on Unix, this method will be automatically called after fork,
...
...
tensorpack/dataflow/imgaug/external.py
View file @
7c8cbba0
...
@@ -24,8 +24,9 @@ class IAAugmentor(ImageAugmentor):
...
@@ -24,8 +24,9 @@ class IAAugmentor(ImageAugmentor):
.. code-block:: python
.. code-block:: python
from tensorpack import imgaug # this is not the aleju/imgaug library
from imgaug import augmentors as iaa # this is the aleju/imgaug library
from imgaug import augmentors as iaa # this is the aleju/imgaug library
from tensorpack import imgaug # this is not the aleju/imgaug library
# or from dataflow import imgaug # if you're using the standalone version of dataflow
myaug = imgaug.IAAugmentor(
myaug = imgaug.IAAugmentor(
iaa.Sequential([
iaa.Sequential([
iaa.Sharpen(alpha=(0, 1), lightness=(0.75, 1.5)),
iaa.Sharpen(alpha=(0, 1), lightness=(0.75, 1.5)),
...
@@ -68,6 +69,7 @@ class Albumentations(ImageAugmentor):
...
@@ -68,6 +69,7 @@ class Albumentations(ImageAugmentor):
.. code-block:: python
.. code-block:: python
from tensorpack import imgaug
from tensorpack import imgaug
# or from dataflow import imgaug # if you're using the standalone version of dataflow
import albumentations as AB
import albumentations as AB
myaug = imgaug.Albumentations(AB.RandomRotate90(p=1))
myaug = imgaug.Albumentations(AB.RandomRotate90(p=1))
"""
"""
...
...
tensorpack/dataflow/remote.py
View file @
7c8cbba0
...
@@ -34,7 +34,7 @@ def send_dataflow_zmq(df, addr, hwm=50, format=None, bind=False):
...
@@ -34,7 +34,7 @@ def send_dataflow_zmq(df, addr, hwm=50, format=None, bind=False):
addr: a ZMQ socket endpoint.
addr: a ZMQ socket endpoint.
hwm (int): ZMQ high-water mark (buffer size)
hwm (int): ZMQ high-water mark (buffer size)
format (str): The serialization format.
format (str): The serialization format.
Default format uses :mod:`
tensorpack.
utils.serialize`.
Default format uses :mod:`utils.serialize`.
This format works with :class:`dataflow.RemoteDataZMQ`.
This format works with :class:`dataflow.RemoteDataZMQ`.
An alternate format is 'zmq_ops', used by https://github.com/tensorpack/zmq_ops
An alternate format is 'zmq_ops', used by https://github.com/tensorpack/zmq_ops
and :class:`input_source.ZMQInput`.
and :class:`input_source.ZMQInput`.
...
...
tensorpack/utils/develop.py
View file @
7c8cbba0
...
@@ -69,7 +69,7 @@ def create_dummy_func(func, dependency):
...
@@ -69,7 +69,7 @@ def create_dummy_func(func, dependency):
def
building_rtfd
():
def
building_rtfd
():
"""
"""
Returns:
Returns:
bool: if t
ensorpack
is being imported to generate docs now.
bool: if t
he library
is being imported to generate docs now.
"""
"""
return
os
.
environ
.
get
(
'READTHEDOCS'
)
==
'True'
\
return
os
.
environ
.
get
(
'READTHEDOCS'
)
==
'True'
\
or
os
.
environ
.
get
(
'DOC_BUILDING'
)
or
os
.
environ
.
get
(
'DOC_BUILDING'
)
...
...
tensorpack/utils/utils.py
View file @
7c8cbba0
...
@@ -103,8 +103,6 @@ def fix_rng_seed(seed):
...
@@ -103,8 +103,6 @@ def fix_rng_seed(seed):
.. code-block:: python
.. code-block:: python
import tensorpack.utils.utils as utils
seed = 42
seed = 42
utils.fix_rng_seed(seed)
utils.fix_rng_seed(seed)
tesnorflow.set_random_seed(seed)
tesnorflow.set_random_seed(seed)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment