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

AttributeError: module 'paddlers.transforms' has no attribute 'DecodeImg' #43

Open
Leeinsn opened this issue Sep 21, 2022 · 6 comments
Open
Assignees
Labels

Comments

@Leeinsn
Copy link

Leeinsn commented Sep 21, 2022

I tried to train a mdoel like official example. But I have the note that 'AttributeError: module 'paddlers.transforms' has no attribute 'DecodeImg''. What is wrong with the paddlers? Hope for your quick response ! Thanks!

@geoyee
Copy link
Collaborator

geoyee commented Sep 22, 2022

Perhaps you can provide more details, like version of PaddleRS, your codes, and et al. Please refer to this template. We will help you to slove it 😄.

@iEdric
Copy link

iEdric commented Nov 23, 2022

ubuntu 18.04 cuda11.6----------------按照官网方文档,报相同的错
(pytorch37pp) cl@cl:~/pp/PaddleRS/tutorials/train/semantic_segmentation$ python deeplabv3p.py
/home/cl/anaconda3/envs/pytorch37pp/lib/python3.7/site-packages/paddlers/models/ppcls/data/preprocess/ops/timm_autoaugment.py:38: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
_RANDOM_INTERPOLATION = (Image.BILINEAR, Image.BICUBIC)
/home/cl/anaconda3/envs/pytorch37pp/lib/python3.7/site-packages/paddlers/models/ppcls/data/preprocess/ops/timm_autoaugment.py:38: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
_RANDOM_INTERPOLATION = (Image.BILINEAR, Image.BICUBIC)
2022-11-23 17:59:51 [INFO] Decompressing ./data/rsseg.zip...
2022-11-23 18:00:00 [DEBUG] ./data/rsseg.zip decompressed.
Traceback (most recent call last):
File "deeplabv3p.py", line 32, in
T.DecodeImg(),
AttributeError: module 'paddlers.transforms' has no attribute 'DecodeImg'

@Harryoung Harryoung added the WIP label Dec 7, 2022
@zjqqwn
Copy link

zjqqwn commented Jan 7, 2023

Is your problem solved, I'm having a similar issue when reproducing the code for the following link.
https://github.com/PaddlePaddle/PaddleRS/blob/develop/tutorials/train/change_detection/dsifn.py
PaddleRS version: paddlers,1.0b0
PaddlePaddle version: paddlepaddle2.4.1
Operation system: Windows
Python version: Python3.7.0
AttributeError: module 'paddlers.transforms' has no attribute 'DecodeImg'

@Bobholamovic
Copy link
Member

Is your problem solved, I'm having a similar issue when reproducing the code for the following link. https://github.com/PaddlePaddle/PaddleRS/blob/develop/tutorials/train/change_detection/dsifn.py PaddleRS version: paddlers,1.0b0 PaddlePaddle version: paddlepaddle2.4.1 Operation system: Windows Python version: Python3.7.0 AttributeError: module 'paddlers.transforms' has no attribute 'DecodeImg'

Please install the release version of PaddleRS v1.0 instead of v1.0-beta, as there is an API incompatibility between these two versions.

@zjqqwn
Copy link

zjqqwn commented Jan 9, 2023

But how to install the release version of PaddleRS v1.0? I didn't find a way on how to download this version. Please describe in as much detail as possible. Thank you so much.

@Bobholamovic
Copy link
Member

@zjqqwn Please follow the installation document .

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

No branches or pull requests

6 participants