Comments (8)
假设你在本地代理软件正常工作,如clash一般会有一个端口设置,这个端口默认是7890
那么在你笔记本电脑上实际 可以通过 代理 http://127.0.0.1:7890 进行上网
如下图
在这句ssh 语句中
local_socket_port 就是7890
remote_available_port 这个就是服务器没被占用的一个可用端口即可,也可以填写7890,不过我在setting.py 代理地址我写了2233 这样你可以写2233 代码中就不用更改了
{user}@{host} -p {remote_ssh_port} 是ssh 登录的用户和地址和端口信息
如 [email protected] -p 22 如果,替换成你自己的即可
ssh -N -R 127.0.0.1:{remote_available_port}:127.0.0.1:{local_socket_port} {user}@{host} -p {remote_ssh_port}
ssh -N -R 127.0.0.1:2233:127.0.0.1:7890 {user}@{host} -p {remote_ssh_port}
最后将setting.py 中的关于代理的注释取消即可,不用更改代码
from stable-video-diffusion-webui.
如果你的服务器和笔记本在一个局域网下可以用这个方法,直接填写局域网中的代理地址和端口
stable-video-diffusion-webui/setting.py
Lines 3 to 7 in 1593f61
我在国内服务器上部署的时候也遇到这个问题了,我的解决方案是
在服务器上安装一个v2raya 当然 clash 也可以 ,然后将上面代码中的代理地址填写你的代理端口
它里面具体的下载细节我也不清楚,😯
from stable-video-diffusion-webui.
如果你用autodl 平台可以直接使用这个 Docker
from stable-video-diffusion-webui.
谢谢,我的服务器和笔记本不在同一局域网下;服务器是租的腾讯云,之前是可以用clash了,但最近我被封过一次(我只是科学上网的用户而不是供应商,且科学上网的出发点只是下载AI模型等,没有做任何违反法律道德的事情),且前两天发现我常用的clash for linux项目已经404了,所以猜测最近风声比较紧。我不想自己的服务器再次被封,所以计划服务器不再安装科学上网服务,所以需要科学上网的东西都通过我的本地笔记本下载后上传到服务器里
from stable-video-diffusion-webui.
谢谢,我的服务器和笔记本不在同一局域网下;服务器是租的腾讯云,之前是可以用clash了,但最近我被封过一次(我只是科学上网的用户而不是供应商,且科学上网的出发点只是下载AI模型等,没有做任何违反法律道德的事情),且前两天发现我常用的clash for linux项目已经404了,所以猜测最近风声比较紧。我不想自己的服务器再次被封,所以计划服务器不再安装科学上网服务,所以需要科学上网的东西都通过我的本地笔记本下载后上传到服务器里
通过ssh反向代理解决服务器没网的问题
https://blog.csdn.net/zkkksssss/article/details/123603780
可以试试这个方案,亲测可行
from stable-video-diffusion-webui.
看了半天这个ssh反向代理解决方案,没太明白……操作了一下,那些参数需要如何设置,我也不太懂。可以看看你下载的模型放在了哪里吗?我手动下载然后上传过去好了
from stable-video-diffusion-webui.
可以了,谢谢你!
我的操作如下,供其他人参考:
本机(我的笔记本,用的是clash for windows,端口是7890):
# user和host是ssh到远程服务器时用的user和host
ssh -N -R 127.0.0.1:2233:127.0.0.1:7890 user@host
远程服务器:
export http_proxy="socks5h://127.0.0.1:2233"; export https_proxy="socks5h://127.0.0.1:2233"
export http_proxy=http://127.0.0.1:2233; export https_proxy=http://127.0.0.1:2233
svd的settings.py:
# 取消以下2行注释
os.environ['http_proxy'] = 'http://127.0.0.1:2233/'
os.environ['https_proxy'] = 'http://127.0.0.1:2233/'
from stable-video-diffusion-webui.
一种代理设置方法:使用xshell 隧道让服务器通过本地代理上网
from stable-video-diffusion-webui.
Related Issues (10)
- How to change the frame per second (FPS)? HOT 1
- 使用CG客户端下载镜像到本地运行,默认运行时吃满了CPU,GPU基本没变化 HOT 3
- 多nv卡的情况可以通过配置来提升生成的总帧数么 HOT 1
- SVD vs AnimateDiff HOT 2
- Output video has a weird pink filter HOT 2
- Can the generated dynamics guided by text? HOT 3
- 问题 HOT 1
- 第一次运行run.py时无法连接huggingface.co下载open_clip HOT 1
- OS system issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stable-video-diffusion-webui.