TypeError: 'float' object is not subscriptable
Akyshnik opened this issue · 3 comments
Akyshnik commented
Seems like something broke the IllusTrip3D.ipynb in the new update. Settings of possibly relevant parameters: zoom = 0.0005, shift = 0, animate_them = False
Here is the stack trace:
using fast aug transforms
using RGB method, 95 samples
ref text: ethereal cosmology
ref style:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-09ff3d020318> in <module>()
229 pbar = ProgressBar(glob_steps)
230 for i in range(count):
--> 231 process(i)
232
233 HTML(makevid(tempdir))
1 frames
<ipython-input-6-4929578fc46a> in depth_transform(img_t, img_np, depth_infer, depth_mask, size, depthX, scale, shift, colors, depth_dir, save_num)
46 dY = 100. * shift[1] / size[0]
47 # dZ = movement direction: 1 away (zoom out), 0 towards (zoom in), 0.5 stay
---> 48 dZ = 0.5 + 23. * (scale[0]-1)
49 # dZ += 0.5 * float(math.sin(((save_num % 70)/70) * math.pi * 2))
50
TypeError: 'float' object is not subscriptable
Akyshnik commented
The error occurs only if animate_them = False
eps696 commented
ah my bad, never tested that mode myself
should be fixed now
eps696 commented
i consider the issue solved, closing it now. feel free to reopen it, if not.