Skip to content

Commit ad12f32

Browse files
committed
hotfix cv
1 parent 1d2c4ef commit ad12f32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/bossypaints/renderer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def render_from_checkpoints(self, task: TaskInDB, checkpoints: list[Checkpoint])
181181
voxel_size = source_dataset.voxel_size
182182
# For CloudVolume sources, try to get info from existing CloudVolume
183183
elif task.data_source_type == "cloudvolume" and task.cloudvolume_uri:
184-
source_cv = CloudVolume(task.cloudvolume_uri, mip=task.resolution, progress=False, cache=False)
184+
source_cv = CloudVolume(task.cloudvolume_uri, mip=task.resolution, progress=False, cache=False, use_https=True)
185185
if hasattr(source_cv, 'scales') and len(source_cv.scales) > task.resolution:
186186
scale = source_cv.scales[task.resolution]
187187
if hasattr(scale, 'resolution'):
@@ -220,7 +220,7 @@ def render_from_checkpoints(self, task: TaskInDB, checkpoints: list[Checkpoint])
220220
json.dump(info, f, indent=2)
221221

222222
# Create CloudVolume instance and write data (always use mip=0 for new datasets)
223-
cv = CloudVolume(cv_path, mip=0, info=info, progress=False, cache=False)
223+
cv = CloudVolume(cv_path, mip=0, info=info, progress=False, cache=False, fill_missing=False)
224224

225225
# CloudVolume indexing is [x, y, z] but our volume data is in (z, y, x) order
226226
# We need to transpose the volume to (x, y, z) order for CloudVolume

0 commit comments

Comments
 (0)