Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Fix TypeError#2248

Open
vertexodessa wants to merge 1 commit intoNVIDIA:masterfrom
vertexodessa:patch-1
Open

Fix TypeError#2248
vertexodessa wants to merge 1 commit intoNVIDIA:masterfrom
vertexodessa:patch-1

Conversation

@vertexodessa
Copy link

File "/opt/digits/digits/extensions/data/imageSegmentation/data.py", line 225, in split_image_list
random.shuffle(self.random_indices)
File "/usr/lib/python3.8/random.py", line 307, in shuffle
x[i], x[j] = x[j], x[i]
TypeError: 'range' object does not support item assignment

File "/opt/digits/digits/extensions/data/imageSegmentation/data.py", line 225, in split_image_list
random.shuffle(self.random_indices)
File "/usr/lib/python3.8/random.py", line 307, in shuffle
x[i], x[j] = x[j], x[i]
TypeError: 'range' object does not support item assignment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant