Coder Social home page Coder Social logo

Comments (10)

jeong-tae avatar jeong-tae commented on July 21, 2024

i updated. can you check this error is solved?

from racnn-pytorch.

fxle avatar fxle commented on July 21, 2024

I have checked this update, but there are still problems.Do you know what the problem is? In addition, is your mailbox available([email protected])? I suggest that we can use e-mail or other means to achieve timely communication.
[] pre_apn_epoch[13], || pre_apn_iter 19980 || pre_apn_loss: 0.0925 || Timer: 0.1519sec
[
] Swtich optimize parameters to Class
Traceback (most recent call last):
File "/home/alex/Experiment/RACNN-pytorch/trainer.py", line 306, in
train()
File "/home/alex/Experiment/RACNN-pytorch/trainer.py", line 129, in train
new_apn_loss = pairwise_ranking_loss(preds)
File "/home/alex/Experiment/RACNN-pytorch/models/Loss.py", line 20, in pairwise_ranking_loss
return torch.zeros(1).type(preds.type())

AttributeError: 'list' object has no attribute 'type'

Exception ignored in: <bound method _DataLoaderIter.del of <torch.utils.data.dataloader._DataLoaderIter object at 0x7f065e408c50>>
Traceback (most recent call last):
File "/home/alex/.local/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 399, in del
self._shutdown_workers()
File "/home/alex/.local/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 378, in _shutdown_workers
self.worker_result_queue.get()
File "/usr/lib/python3.5/multiprocessing/queues.py", line 345, in get
return ForkingPickler.loads(res)
File "/home/alex/.local/lib/python3.5/site-packages/torch/multiprocessing/reductions.py", line 151, in rebuild_storage_fd
fd = df.detach()
File "/usr/lib/python3.5/multiprocessing/resource_sharer.py", line 57, in detach
with _resource_sharer.get_connection(self._id) as conn:
File "/usr/lib/python3.5/multiprocessing/resource_sharer.py", line 87, in get_connection
c = Client(address, authkey=process.current_process().authkey)
File "/usr/lib/python3.5/multiprocessing/connection.py", line 487, in Client
c = SocketClient(address)
File "/usr/lib/python3.5/multiprocessing/connection.py", line 614, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

Process finished with exit code 1

from racnn-pytorch.

jeong-tae avatar jeong-tae commented on July 21, 2024

yes. mail address is valid, but i can't focus on issue timely. i am working on other project right now. This repo is just for my hobby

from racnn-pytorch.

fxle avatar fxle commented on July 21, 2024

Well, thank you very much ,Looking forward to your update.

from racnn-pytorch.

LXYTSOS avatar LXYTSOS commented on July 21, 2024

Have you solved this problem? I encountered the same problem.

from racnn-pytorch.

fxle avatar fxle commented on July 21, 2024

I used vgg16 instead,but loss parameters do not converge.How about your experiment results now? @LXYTSOS

from racnn-pytorch.

LXYTSOS avatar LXYTSOS commented on July 21, 2024

I got another problem, RuntimeError: cuda runtime error (2) : out of memory at /pytorch/aten/src/THC/generic/THCStorage.cu:58

from racnn-pytorch.

fxle avatar fxle commented on July 21, 2024

Try to fix the batch-size to low,and keep your cuda memory enough

from racnn-pytorch.

LXYTSOS avatar LXYTSOS commented on July 21, 2024

I fixed the batch-size to one, If I only use one GPU, I'll got this error when "Swtich optimize parameters to APN", and if I use multi-GPU, no matter how many GPUs I use, I'll got this error after one batch training. check this #7

from racnn-pytorch.

jeong-tae avatar jeong-tae commented on July 21, 2024

@fxle i fixed the code and... sorry to tell this. For now, only cuda computation is supported to train. Not for CPU. To calculate loss, i have to know type of tensor but some case, there is no prediction so that there is no chance to check input type.
If you use GPU, it will be fine.

from racnn-pytorch.

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.