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

numpy broadcast error #69

Open
oshriez opened this issue May 9, 2018 · 0 comments
Open

numpy broadcast error #69

oshriez opened this issue May 9, 2018 · 0 comments

Comments

@oshriez
Copy link

oshriez commented May 9, 2018

strange.. same sequence worked, and now (after restart) :

Processing frame #1
Traceback (most recent call last):
File ".\2_dreaming_time.py", line 506, in
main(args.input, args.output, args.image_type, args.gpu, args.model_path, args.model_name, args.preview, args.octaves, args.octavescale, args.iterations, args.jitter, args.zoom, args.stepsize, args.blend, args.layers, args.guide_image, args.start_frame, args.end_frame, args.verbose)
File ".\2_dreaming_time.py", line 331, in main
frame = deepdream(net, frame, image_type=image_type, verbose=verbose, iter_n = iterations, step_size = stepsize, octave_n = octaves, octave_scale = octave_scale, jitter=jitter, end = endparam)
File ".\2_dreaming_time.py", line 113, in deepdream
octaves = [preprocess(net, base_img)]
File ".\2_dreaming_time.py", line 39, in preprocess
return np.float32(np.rollaxis(img, 2)[::-1]) - net.transformer.mean['data']
ValueError: operands could not be broadcast together with shapes (4,720,1280) (3,1,1)

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

1 participant