Skip to content

numpy broadcast error #69

@oshriez

Description

@oshriez

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions