-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refine_flowvision #216
base: main
Are you sure you want to change the base?
refine_flowvision #216
Conversation
docs/source/flowvision.models.rst
Outdated
@@ -6,7 +6,7 @@ Pretrain Models for Visual Tasks | |||
Classification | |||
============== | |||
|
|||
The models subpackage contains definitions for the following model | |||
The models' subpackage contains definitions for the following model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个修改是错的,你可能没有去理解原文意思?
@@ -14,7 +14,7 @@ pip install -e . | |||
|
|||
## Usage | |||
### Create a model | |||
In flowvision we support two ways to create a model. | |||
Flowvision supports two ways to create a model: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flowvision supports two ways to create a model: | |
FlowVision supports two ways to create a model: |
@@ -77,7 +77,7 @@ You can get the results like: | |||
╘════════════════════════════════════════════╧══════════════╛ | |||
``` | |||
|
|||
### Search for supported model by Wildcard | |||
### Search for the supported model by Wildcard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的大小写是遵循什么规范呢,为什么 "Wildcard“ 是单独大写的。
flowvision/data/mixup.py
Outdated
@@ -39,7 +39,7 @@ def mixup_target(target, num_classes, lam=1.0, smoothing=0.0, device="cuda"): | |||
|
|||
def rand_bbox(img_shape, lam, margin=0.0, count=None): | |||
""" Standard CutMix bounding-box | |||
Generates a random square bbox based on lambda value. This impl includes | |||
generates a random square bbox based on lambda value. This impl includes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generates a random square bbox based on lambda value. This impl includes | |
generates a random square bbox based on lambda value. This implementation includes |
impl 是什么意思?
@@ -539,11 +539,11 @@ def __repr__(self): | |||
|
|||
def auto_augment_transform(config_str, hparams): | |||
""" | |||
Create a AutoAugment transform | |||
Creates a AutoAugment transform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这边需要Creates吗2333,我怎么感觉貌似Create就行了
flowvision/data/mixup.py
Outdated
@@ -20,7 +20,7 @@ def one_hot(x, num_classes, on_value=1.0, off_value=0.0, device="cuda"): | |||
|
|||
def mixup_target(target, num_classes, lam=1.0, smoothing=0.0, device="cuda"): | |||
""" | |||
Mixup the targets with label-smoothing | |||
Mixes up the targets with label-smoothing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这边用MixUp
就行了,mixup整体是作为一个名词,表示一个数据增强操作
flowvision/data/mixup.py
Outdated
@@ -39,7 +39,7 @@ def mixup_target(target, num_classes, lam=1.0, smoothing=0.0, device="cuda"): | |||
|
|||
def rand_bbox(img_shape, lam, margin=0.0, count=None): | |||
""" Standard CutMix bounding-box | |||
Generates a random square bbox based on lambda value. This impl includes | |||
generates a random square bbox based on lambda value. This implementation includes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个开头需要大写,和上面那个不算同一行,Generates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
收到,已修改
flowvision/scheduler/multistep_lr.py
Outdated
@@ -11,7 +11,7 @@ | |||
|
|||
class MultiStepLRScheduler(Scheduler): | |||
"""MultiStep LRScheduler | |||
Decays the learning rate of each parameter group by decay_rate once the | |||
decays the learning rate of each parameter group by decay_rate once the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这边儿同上需要大写开头的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
收到,已修改
flowvision/scheduler/step_lr.py
Outdated
@@ -9,7 +9,7 @@ | |||
|
|||
class StepLRScheduler(Scheduler): | |||
""" Step LRScheduler | |||
Decays the learning rate of each parameter group by | |||
decays the learning rate of each parameter group by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
收到,已修改
@@ -126,7 +126,7 @@ def save_image( | |||
pad_value: int = 0, | |||
format: Optional[str] = None, | |||
) -> None: | |||
"""Save a given Tensor into an image file. | |||
"""Saves a given Tensor into an image file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emmm,我其实感觉这些都不太需要第三人称的形式
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
您好,这个问题我想请教一下,如果按照英文祈使句的语法规则,句首动词应该用动词原型,但是我看FlowVision仓库里的文本,有很大一部分都用的第三人称,而且Torchvision里也有使用第三人称的情况,因此我为了文章前后统一,才把这些改为了第三人称。由于我不太懂编程,所以想请教一下编程当中对句首动词人称的选择是根据一般的语法规则呢?还是有独特的规定?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
其实都OK吧,只要你前后统一就行了~,话说这个PR可以继续推进一下嘛,争取这两天合并进去
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.