Skip to content

default_collate error while trying to quantize my pytorch model #1921

Answered by vshampor
CostatoMarco asked this question in Q&A
Discussion options

You must be logged in to vote

This time it seems that the error is unrelated to NNCF. Looks like you have to specify a transform=... parameter when instantiating the ImageFolder as specified in the docs to maybe transform the PIL image to a torch.Tensor or something.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@CostatoMarco
Comment options

@vshampor
Comment options

Answer selected by CostatoMarco
@CostatoMarco
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants