Shortcuts

StyleTransfer

class flash.image.style_transfer.model.StyleTransfer(style_image=None, model=None, backbone='vgg16', content_layer='relu2_2', content_weight=100000.0, style_layers=['relu1_2', 'relu2_2', 'relu3_3', 'relu4_3'], style_weight=10000000000.0, optimizer='Adam', lr_scheduler=None, learning_rate=None)[source]

StyleTransfer is a Task for transferring the style from one image onto another. For more details, see Style Transfer.

Parameters
classmethod available_finetuning_strategies(cls)

Returns a list containing the keys of the available Finetuning Strategies.

Return type

List[str]

classmethod available_lr_schedulers(cls)

Returns a list containing the keys of the available LR schedulers.

Return type

List[str]

classmethod available_optimizers(cls)

Returns a list containing the keys of the available Optimizers.

Return type

List[str]

classmethod available_outputs(cls)

Returns the list of available outputs (that can be used during prediction or serving) for this Task.

Examples

..testsetup:

>>> from flash import Task
>>> print(Task.available_outputs())
['preds', 'raw']
Return type

List[str]

Read the Docs v: 0.7.2
Versions
latest
stable
0.7.2
0.7.1
0.7.0
0.6.0
0.5.2
0.5.1
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0post1
docs-fix_typing
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.