jbwang1997 / OBBDetection

OBBDetection is an oriented object detection library, which is based on MMdetection.
Apache License 2.0
520 stars 111 forks source link

Where to find the code of .cfg, .to(device) and .eval() #138

Open chandlerbing65nm opened 2 years ago

chandlerbing65nm commented 2 years ago

When a certain detector is being trained or tested, we set one of these lines of code:

model.cfg = cfg
model.to(device)
model.eval();

But where exactly in the mmdetor mmcv folders we can find the code definition of .cfg, .to(device) and .eval()? Where are the functions defined?