-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
想付费请作者修改增加功能 #5
Comments
另外想请教下,怎么才能返回识别到的所有水印位置呢 |
Line 209 in d8cabef
result里面就有yolov5模型检测到的所有信息了。 抱歉,平时也比较忙,这个库基本就不更新了hhhh |
我用ai改了下,支持识别多个水印位置生成遮罩了,但是yolov5模型识别不了我的水印,我用yolov8生成了一个模型,但是不知道你的代码如何改成支持yolov8,如果大佬愿意修改,小弟愿意付费的,`import logging from baidu import BaiduAPI 配置loggerlogger = logging.getLogger('watermark-tracer') def detect_watermark_from_video_result(frames, res, threshold=0.1): def detect_watermark_from_img_result(img, res, err_ratio=0.05, threshold=0.1): def estimate_watermark_from_images(imgs: list, enhance: int = 50):
def poisson_reconstruct(gradx, grady, kernel_size=3, num_iters=100, h=0.1,
def get_file_path(args): def get_images(file_path): def load_model(): def get_watermark(file_type, imgs, results): if name == "main":
|
我主要是没看懂yolov5是怎么训练模型的,以及目录中该怎么存放结构,我有下载WatermarkDataset压缩包查看,还是没看懂 还是这个 cd data |
不然用yolov5训练也行 |
我用工具生成了训练集和验证集 E:\YOLOTRAIN\DATASETS\LOGO |
我将yolov5的best.pt替换为yolov8的best.pt,就出错了,trace.py中搜索torch.hub.load这里已经修改为yolov8的best.pt 提示以下:
YoloV5加载失败: No module named 'ultralytics'. Cache may be out of date, try force_reload=True or see https://github.com/ultralytics/yolov5/issues/36 for help. 安装pip install ultralytics也没用,提示
To fix this you could try to:
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts |
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ 再次执行提示>> python watermark-trace.py -m E:\1\084102t147fe1774ftst45.jpg Model summary (fused): 168 layers, 3006233 parameters, 0 gradients, 8.1 GFLOPs |
算了,我都不知道自己在干啥,大佬能教教我怎么使用你的代码训练yolov5模型吗,可付费,如果没空的话就先不打扰了 |
你直接用他的代码重新构建新的数据集并按照yolo8的方法训练就行了,按照他的逻辑来重构一个新的代码会比较好。 |
抱歉哦,精力不足,无法更新这个程序~ 很久之前写的代码哈哈哈哈,代码不是很难,可以给大家的工作提供一些参考。 |
增加识别水印位置生成蒙版
或者增加调用https://github.com/Sanster/IOPaint?tab=readme-ov-file这个自动去除水印
作者有空吗
The text was updated successfully, but these errors were encountered: