Coder Social home page Coder Social logo

Comments (5)

naoto0804 avatar naoto0804 commented on May 26, 2024

Principally, you can do it by replacing device = torch.device('cuda') to device = torch.device('cpu'), but it's extremely slow especially in training the model.
https://github.com/naoto0804/pytorch-inpainting-with-partial-conv/blob/master/train.py#L62

from pytorch-inpainting-with-partial-conv.

 avatar commented on May 26, 2024

Ahh thank you so much. Thank you for sharing the code btw. This is by far the best and easiest to use out of all repos!

from pytorch-inpainting-with-partial-conv.

 avatar commented on May 26, 2024

Principally, you can do it by replacing device = torch.device('cuda') to device = torch.device('cpu'), but it's extremely slow especially in training the model.
https://github.com/naoto0804/pytorch-inpainting-with-partial-conv/blob/master/train.py#L62

Traceback (most recent call last):
  File "E:\Programs\Miniconda3\envs\py37\lib\site-packages\torch\utils\data\
dataloader.py", line 511, in _try_get_batch
    data = self.data_queue.get(timeout=timeout)
  File "E:\Programs\Miniconda3\envs\py37\lib\multiprocessing\queues.py", lin
e 105, in get
    raise Empty
_queue.Empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "train.py", line 110, in <module>
    image, mask, gt = [x.to(device) for x in next(iterator_train)]
  File "E:\Programs\Miniconda3\envs\py37\lib\site-packages\torch\utils\data\
dataloader.py", line 576, in __next__
    idx, batch = self._get_batch()
  File "E:\Programs\Miniconda3\envs\py37\lib\site-packages\torch\utils\data\
dataloader.py", line 553, in _get_batch
    success, data = self._try_get_batch()
  File "E:\Programs\Miniconda3\envs\py37\lib\site-packages\torch\utils\data\
dataloader.py", line 519, in _try_get_batch
    raise RuntimeError('DataLoader worker (pid(s) {}) exited unexpectedly'.forma
t(pids_str))
RuntimeError: DataLoader worker (pid(s) 13708, 13816, 4588, 14068, 6768, 13380,
9600, 10924, 13540, 13924, 14024, 13776, 13796, 4104, 13832, 11968) exited unexp
ectedly

I tried running the train.py and this is what I got @naoto0804

from pytorch-inpainting-with-partial-conv.

naoto0804 avatar naoto0804 commented on May 26, 2024

Could you check if the dataset is correctly loaded? (ref: preprocess)

from pytorch-inpainting-with-partial-conv.

 avatar commented on May 26, 2024

I'm not using places 2 dataset, but I edited the yml file and I've made sure that data_large, val_large, and test_large are inside the folder. I also changed the mask root to ./mask because the mask generator saved the mask in that folder instead

from pytorch-inpainting-with-partial-conv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.