We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db44771 commit ddf5c5bCopy full SHA for ddf5c5b
docs/api/paddle/vision/transforms/adjust_brightness_cn.rst
@@ -21,16 +21,6 @@ adjust_brightness
21
代码示例
22
:::::::::
23
24
-.. code-block:: python
+COPY-FROM: paddle.vision.transforms.adjust_brightness
25
26
- import numpy as np
27
- from PIL import Image
28
- from paddle.vision.transforms import functional as F
29
-
30
- fake_img = (np.random.rand(256, 300, 3) * 255.).astype('uint8')
31
32
- fake_img = Image.fromarray(fake_img)
33
34
- converted_img = F.adjust_brightness(fake_img, 0.4)
35
- print(converted_img.size)
36
0 commit comments