boostcampaitech4lv23cv1 / level2_objectdetection_cv-level2-cv-05 Goto Github PK
View Code? Open in Web Editor NEWlevel2_objectdetection_cv-level2-cv-05 created by GitHub Classroom
level2_objectdetection_cv-level2-cv-05 created by GitHub Classroom
현재 mmdetection에서 seed에 따른 재현성에 문제가 있는 것 같습니다.
config에서 seed 설정을 해도 동일한 코드에서 다른 결과가 나옵니다.
위에 따르면 set_random_seed(seed, deterministic=True)를 통해 seed를 고정할 수 있지만
cuda 문제로 작은 차이가 발생할 수 있다고 합니다.
Exception Traceback (most recent call last)
/tmp/ipykernel_7165/4164586547.py in
1 # 모델 학습
----> 2 train_detector(model, datasets[0], cfg, distributed=False, validate=True)
~/baseline/mmdetection/mmdet/apis/train.py in train_detector(model, dataset, cfg, distributed, validate, timestamp, meta)
242 elif cfg.load_from:
243 runner.load_checkpoint(cfg.load_from)
--> 244 runner.run(data_loaders, cfg.workflow)
/opt/conda/envs/detection/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py in run(self, data_loaders, workflow, max_epochs, **kwargs)
115 self.logger.info('workflow: %s, max: %d epochs', workflow,
116 self._max_epochs)
--> 117 self.call_hook('before_run')
118
119 while self.epoch < self._max_epochs:
/opt/conda/envs/detection/lib/python3.7/site-packages/mmcv/runner/base_runner.py in call_hook(self, fn_name)
315 """
316 for hook in self._hooks:
--> 317 getattr(hook, fn_name)(self)
318
319 def get_hook_info(self) -> str:
/opt/conda/envs/detection/lib/python3.7/site-packages/mmcv/runner/dist_utils.py in wrapper(*args, **kwargs)
142 rank, _ = get_dist_info()
143 if rank == 0:
--> 144 return func(*args, **kwargs)
145
146 return wrapper
~/baseline/mmdetection/mmdet/core/hook/wandblogger_hook.py in before_run(self, runner)
199 self._init_data_table()
200 # Add data to the data table
--> 201 self._add_ground_truth(runner)
202 # Log ground truth data
203 self._log_data_table()
~/baseline/mmdetection/mmdet/core/hook/wandblogger_hook.py in _add_ground_truth(self, runner)
383 is_poly_mask=True,
384 height=img_height,
--> 385 width=img_width)
386 else:
387 wandb_masks = None
~/baseline/mmdetection/mmdet/core/hook/wandblogger_hook.py in _get_wandb_masks(self, masks, labels, is_poly_mask, height, width)
534 if is_poly_mask:
535 if height is not None and width is not None:
--> 536 mask = polygon_to_bitmap(mask, height, width)
537 # Create composite masks for each class.
538 if label not in mask_label_dict.keys():
~/baseline/mmdetection/mmdet/core/mask/structures.py in polygon_to_bitmap(polygons, height, width)
1067 ndarray: the converted masks in bitmap representation
1068 """
-> 1069 rles = maskUtils.frPyObjects(polygons, height, width)
1070 rle = maskUtils.merge(rles)
1071 bitmap_mask = maskUtils.decode(rle).astype(np.bool)
pycocotools/_mask.pyx in pycocotools._mask.frPyObjects()
Exception: input type is not supported.
lr 0.0002 까지 낮추니까 학습되네요. mAP 0.3811 나왔습니다
https://stackoverflow.com/questions/40472499/issue-nan-with-adam-solver
test
github - slack test
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.