You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import numpy as np
from threading import Thread
from queue import Queue
import sys
import os
from tqdm import tqdm
import cv2 as cv
import torch
import json
import paho.mqtt.publish as publish
import time
np.set_printoptions(threshold=sys.maxsize)
# import some common detectron2 utilities
from detectron2 import model_zoo
from detectron2.config import get_cfg
from detectron2.engine import DefaultPredictor, DefaultTrainer
from detectron2.checkpoint import DetectionCheckpointer
# from detectron2.utils.video_visualizer import VideoVisualizer
from detectron2.utils.visualizer import ColorMode, Visualizer
from detectron2.modeling import build_model
from detectron2.data import MetadataCatalog, DatasetCatalog
from detectron2.structures import BoxMode, Boxes, Instances
from shapely.geometry import Polygon, Point
...
...
cfg.OUTPUT_DIR="./output"
os.makedirs(cfg.OUTPUT_DIR, exist_ok=True)
trainer = DefaultTrainer(cfg)
trainer.resume_or_load(resume=False)
trainer.train()
Unfortunately my execution didn't come to run the trainer.train() line and my machine crashed on the trainer.resume_or_load(resume=False), I checked my main memory and swap partitions with htop and at the time that my script came in this line the progress bar stays whole red and both bars went until their limit.
I ran the script directly as python <name_of_my_script.py>.
I would like to know if anyone faced the same as me, and how to fix it!
The text was updated successfully, but these errors were encountered:
You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template.
The following information is missing: "Instructions To Reproduce the Issue and Full Logs";
I ran a script to inference a custom dataset made by myself with more than 300 annotation following this tutorial: https://colab.research.google.com/drive/16jcaJoc6bCFAQ96jDe2HwtXj7BMD_-m5 I used the following parameters in the config:
At the moment that I ran this line:
Unfortunately my execution didn't come to run the
trainer.train()
line and my machine crashed on the trainer.resume_or_load(resume=False), I checked my main memory and swap partitions withhtop
and at the time that my script came in this line the progress bar stays whole red and both bars went until their limit.I ran the script directly as python <name_of_my_script.py>.
I would like to know if anyone faced the same as me, and how to fix it!
The text was updated successfully, but these errors were encountered: