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

i met a mistack when i run the sourcecode as follwing #58

Open
TLZS opened this issue Dec 7, 2021 · 3 comments
Open

i met a mistack when i run the sourcecode as follwing #58

TLZS opened this issue Dec 7, 2021 · 3 comments

Comments

@TLZS
Copy link

TLZS commented Dec 7, 2021

img_paths = img_paths[:182000]

UnboundLocalError: local variable 'img_paths' referenced before assignment

@CastellanLiu
Copy link

Sorry, I didn't find this statement in the code, could you provide more details about your question?

@TLZS
Copy link
Author

TLZS commented Dec 7, 2021

Thanks for your replay,the whole mistake as follwing:

Traceback (most recent call last):
File "train.py", line 161, in
tr_data = data.Celeba(dataroot, atts, img_size, batch_size, part='train', sess=sess, crop=crop_)
File "D:\he\STGAN-master\data.py", line 201, in init
img_paths = img_paths[:182000]
UnboundLocalError: local variable 'img_paths' referenced before assignment

@CastellanLiu
Copy link

Please check your dataset, see https://github.com/csmliu/STGAN/blob/master/data.py#L157-L160

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

No branches or pull requests

2 participants