Code Monkey home page Code Monkey logo

Comments (9)

yrcong avatar yrcong commented on July 19, 2024

Could you give the error report? I cannot get the point.

from reltr.

Turkishvein avatar Turkishvein commented on July 19, 2024

image

from reltr.

Turkishvein avatar Turkishvein commented on July 19, 2024

hello, i reduced the error message to this: from datasets import build_dataset, get_coco_api_from_dataset in datasets folder there are no build_dataset neither get_coco_api_from_dataset py files. How can i get them?

from reltr.

Turkishvein avatar Turkishvein commented on July 19, 2024

i started train successfully, but this time gives that error after 2-3 hours later: File "main.py", line 191, in main
train_stats = train_one_epoch(model, criterion, data_loader_train, optimizer, device, epoch, args.clip_max_norm)
File "C:\Users\Uğur\Desktop\reltr\engine.py", line 61, in train_one_epoch
torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm)
File "C:\anaconda\envs\reltr\lib\site-packages\torch\nn\utils\clip_grad.py", line 38, in clip_grad_norm_
if clip_coef < 1:
RuntimeError: CUDA error: unknown error thank you for solutions

from reltr.

yrcong avatar yrcong commented on July 19, 2024

hello, i reduced the error message to this: from datasets import build_dataset, get_coco_api_from_dataset in datasets folder there are no build_dataset neither get_coco_api_from_dataset py files. How can i get them?

Have you already installed pycocotools? I guess this is the reason.

from reltr.

yrcong avatar yrcong commented on July 19, 2024

i started train successfully, but this time gives that error after 2-3 hours later: File "main.py", line 191, in main train_stats = train_one_epoch(model, criterion, data_loader_train, optimizer, device, epoch, args.clip_max_norm) File "C:\Users\Uğur\Desktop\reltr\engine.py", line 61, in train_one_epoch torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm) File "C:\anaconda\envs\reltr\lib\site-packages\torch\nn\utils\clip_grad.py", line 38, in clip_grad_norm_ if clip_coef < 1: RuntimeError: CUDA error: unknown error thank you for solutions

It shows that something goes wrong during the gradient clipping. I have never seen this but it may be caused by the wrong cuda version. Make sure that you are using pytorch==1.6.0 cudatoolkit=10.1. If you want to use RTX30 GPU, please use CUDA11.

from reltr.

Turkishvein avatar Turkishvein commented on July 19, 2024

when install
conda install pytorch==1.6.0 torchvision==0.7.0 cudatoolkit=11 -c pytorch
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
and train not starting :) i tried several pytorch versions and started train but interrupt likely in half of first epoch..

from reltr.

yrcong avatar yrcong commented on July 19, 2024

I have never tried the code on Windows. For Linux/RTX3090/CUDA11.1/PyTorch1.10/, it works well.

from reltr.

altansnl avatar altansnl commented on July 19, 2024

code works on windows fine. you just have a torch error instead of an error related to this repository. GL.

from reltr.

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.