Skip to content

Need help with running the Predictions and Evaluation part of the RasterVision tutorial: TypeError: self._hds cannot be converted to a Python object for pickling #2064

Answered by AdeelH
cpuah asked this question in Q&A
Discussion options

You must be logged in to vote

Try

from torch import multiprocessing

multiprocessing.set_start_method('fork')

If that doesn't help, disable multiprocessing in the data loader:

predictions = learner.predict_dataset(
    ...
    dataloader_kw=dict(num_workers=0),
)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@cpuah
Comment options

@AdeelH
Comment options

@cpuah
Comment options

@AdeelH
Comment options

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