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

cannot reshape array of size 0 into shape (64,128,128,1) #1

Closed
anonymous530 opened this issue Apr 23, 2017 · 5 comments
Closed

cannot reshape array of size 0 into shape (64,128,128,1) #1

anonymous530 opened this issue Apr 23, 2017 · 5 comments
Assignees

Comments

@anonymous530
Copy link

When I tried to run bg_nodm.py, it has something wrong:
      ValueError: cannot reshape array of size 0 into shape (64,128,128,1)
Maybe  three is something wrong : mask.astype(dtype=np.float32).reshape(
                    self.resolution, self.resolution, 1), im) 
            and
              full_output = np.concatenate( (cl2, mask.reshape(self.batch_size, 128, 128, 1)), axis=3)
@tatarchm tatarchm self-assigned this May 2, 2017
@tatarchm
Copy link

tatarchm commented May 2, 2017

Could you please provide some extra information about the issue? Did you run the script in train or test mode? Did you download the additional materials (data/snapshots/backgrounds) before running the script?

@z362194037
Copy link

z362194037 commented Aug 3, 2017

@AndrewSoul do you solve the issue? I met the same question

@anonymous530
Copy link
Author

anonymous530 commented Aug 3, 2017 via email

@z362194037
Copy link

@AndrewSoul I think change the path="../data" into your own path such as "home/xxx/xxx/data" in def load_test_set(normal, bg, rad_factor=1000.0)which in tf_utils.py work.

@tatarchm
Copy link

tatarchm commented Aug 4, 2017

@z362194037 Thank you for pointing this out. The data path was relative to the working directory, not the script location. I've updated the corresponding section of the code.

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

4 participants