Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

JensenPL
Copy link

No description provided.

@@ -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

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:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的大小写是遵循什么规范呢,为什么 "Wildcard“ 是单独大写的。

@@ -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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这边需要Creates吗2333,我怎么感觉貌似Create就行了

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这边用MixUp就行了,mixup整体是作为一个名词,表示一个数据增强操作

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个开头需要大写,和上面那个不算同一行,Generates

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

收到,已修改

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这边儿同上需要大写开头的

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

收到,已修改

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上~

Copy link
Author

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emmm,我其实感觉这些都不太需要第三人称的形式

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

您好,这个问题我想请教一下,如果按照英文祈使句的语法规则,句首动词应该用动词原型,但是我看FlowVision仓库里的文本,有很大一部分都用的第三人称,而且Torchvision里也有使用第三人称的情况,因此我为了文章前后统一,才把这些改为了第三人称。由于我不太懂编程,所以想请教一下编程当中对句首动词人称的选择是根据一般的语法规则呢?还是有独特的规定?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其实都OK吧,只要你前后统一就行了~,话说这个PR可以继续推进一下嘛,争取这两天合并进去

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants