-
Notifications
You must be signed in to change notification settings - Fork 295
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
ubuntu20.04系统的conda虚拟环境如何离线执行DIffBIR? #142
Comments
谢谢您的回复。 我按照您提供的建议下载了提供的链接的hugging face上的相关文件到本地,然后将模型加载路径修改为本地目录地址,比如:model_path = "/root/VAS/DiffBIR/DiffBIR-2.1.0/weights/llava-v1.5-7b",下载的模型文件都放到这个目录下。 发生不少错误,有什么好的解决方法,期待您的回复。谢谢 具体的报错如下: The above exception was the direct cause of the following exception: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): |
再补充几点: 可以正常运行。 期待您的回复,非常感谢。 |
您好。
|
2. 显存不足问题 ----采用了这种方法测试,分别尝试了下面的这些命令:
以上4条命令都能正常值执行,只是运行的速度不一样。而且最后生成的图像也存在同样的问题,即图像的内容按照块左右搞反了,详细效果请看我附件中的两幅图像:“image-00001-orig.png”--原始图像;“image-00001-inferenced.png”--处理后的图像。 请问这是什么原因,如何解决呢? 期待您的回复。谢谢 |
1. 网络连接有关的报错信息 ///////////////////////////////////////////////////// ---按此方法尝试了--captioner ram (下载模型文件,修改相应代码指向本地的模型文件) 期待您的回复,谢谢。 |
您好!我在ubuntu20.04系统上使用conda虚拟环境部署了diffbir v2.1,由于服务器无法访问外网,执行下面时报错:
python -u inference.py --task denoise --upscale 1 --version v2.1 --captioner llava --cfg_scale 8 --noise_aug 0 --input inputs/demo/bid --output results/v2.1_demo_bid
报错如下:
File "/root/anaconda3/envs/diffbir/lib/python3.10/site-packages/transformers/configuration_utils.py", line 689, in _get_config_dict
resolved_config_file = cached_file(
File "/root/anaconda3/envs/diffbir/lib/python3.10/site-packages/transformers/utils/hub.py", line 451, in cached_file
raise EnvironmentError(
OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like liuhaotian/llava-v1.5-7b is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
请问如何离线支持运行DiffBIR,需要提前下载哪些文件? 有没有这方面的描述说明?
期待您的回复,谢谢。
The text was updated successfully, but these errors were encountered: