Open baiguosummer opened 1 year ago
Hello, I use the absolute address of the file displayed by the label tag generated by image_demo.py of mmyolo0.5.0, but I want a similar relative address of the document, how should I modify it? Thanks
{ "version": "5.1.1", "flags": {}, "imagePath": "/home/panda/pycharm/openMMlab/data/work-1000/images/0001.jpg", "imageData": null, "imageHeight": 400, "imageWidth": 600, "shapes": [ { "label": "car", "points": [ [ 33.8625602722168, 119.3039321899414 ], [ 573.2908935546875, 384.2745361328125 ] ], "group_id": null, "shape_type": "rectangle", "flags": {} }, { "label": "car", "points": [ [ 511.4561462402344, 120.16896057128906 ], [ 599.3637084960938, 243.46884155273438 ] ], "group_id": null, "shape_type": "rectangle", "flags": {} }, { "label": "car", "points": [ [ 441.11749267578125, 125.82024383544922 ], [ 575.0388793945312, 206.77247619628906 ] ], "group_id": null, "shape_type": "rectangle", "flags": {} }, { "label": "car", "points": [ [ 0.3799000680446625, 131.34495544433594 ], [ 28.245372772216797, 154.6302032470703 ] ], "group_id": null, "shape_type": "rectangle", "flags": {} } ] }
command: python mmyolo/demo/image_demo.py ./data/work-1000/images mmyolo/work_train_dir/yolov5_s_coco-c5-n7w/yolov5_s-v61_syncbn_fast_8xb16-300e_images3000.py mmyolo/work_train_dir/yolov5_s_coco-c5-n7w/epoch_210.pth --out-dir ./data/work-1000/labels --to-labelme
/home/panda/anaconda3/envs/torch/bin/python /home/panda/pycharm/openMMlab/mmyolo/mmyolo/utils/collect_env.py sys.platform: linux Python: 3.8.16 (default, Mar 2 2023, 03:21:46) [GCC 11.2.0] CUDA available: True numpy_random_seed: 2147483648 GPU 0: NVIDIA GeForce RTX 3080 CUDA_HOME: /usr/local/cuda NVCC: Cuda compilation tools, release 11.3, V11.3.58 GCC: gcc (Ubuntu 9.5.0-1ubuntu1~22.04) 9.5.0 PyTorch: 1.10.1 PyTorch compiling details: PyTorch built with:
TorchVision: 0.11.2 OpenCV: 4.2.0 MMEngine: 0.7.3 MMCV: 2.0.0 MMDetection: 3.0.0 MMYOLO: 0.5.0+dc85144
No response
I want to install this relative address form written in the reference document "imagePath": "../images/0001.jpg",
Prerequisite
🐞 Describe the bug
Hello, I use the absolute address of the file displayed by the label tag generated by image_demo.py of mmyolo0.5.0, but I want a similar relative address of the document, how should I modify it? Thanks
{ "version": "5.1.1", "flags": {}, "imagePath": "/home/panda/pycharm/openMMlab/data/work-1000/images/0001.jpg", "imageData": null, "imageHeight": 400, "imageWidth": 600, "shapes": [ { "label": "car", "points": [ [ 33.8625602722168, 119.3039321899414 ], [ 573.2908935546875, 384.2745361328125 ] ], "group_id": null, "shape_type": "rectangle", "flags": {} }, { "label": "car", "points": [ [ 511.4561462402344, 120.16896057128906 ], [ 599.3637084960938, 243.46884155273438 ] ], "group_id": null, "shape_type": "rectangle", "flags": {} }, { "label": "car", "points": [ [ 441.11749267578125, 125.82024383544922 ], [ 575.0388793945312, 206.77247619628906 ] ], "group_id": null, "shape_type": "rectangle", "flags": {} }, { "label": "car", "points": [ [ 0.3799000680446625, 131.34495544433594 ], [ 28.245372772216797, 154.6302032470703 ] ], "group_id": null, "shape_type": "rectangle", "flags": {} } ] }
command: python mmyolo/demo/image_demo.py ./data/work-1000/images mmyolo/work_train_dir/yolov5_s_coco-c5-n7w/yolov5_s-v61_syncbn_fast_8xb16-300e_images3000.py mmyolo/work_train_dir/yolov5_s_coco-c5-n7w/epoch_210.pth --out-dir ./data/work-1000/labels --to-labelme
Environment
/home/panda/anaconda3/envs/torch/bin/python /home/panda/pycharm/openMMlab/mmyolo/mmyolo/utils/collect_env.py sys.platform: linux Python: 3.8.16 (default, Mar 2 2023, 03:21:46) [GCC 11.2.0] CUDA available: True numpy_random_seed: 2147483648 GPU 0: NVIDIA GeForce RTX 3080 CUDA_HOME: /usr/local/cuda NVCC: Cuda compilation tools, release 11.3, V11.3.58 GCC: gcc (Ubuntu 9.5.0-1ubuntu1~22.04) 9.5.0 PyTorch: 1.10.1 PyTorch compiling details: PyTorch built with:
TorchVision: 0.11.2 OpenCV: 4.2.0 MMEngine: 0.7.3 MMCV: 2.0.0 MMDetection: 3.0.0 MMYOLO: 0.5.0+dc85144
Additional information
No response