HaiboMei / UAV-RIS-DRL

69 stars 23 forks source link

Which paper does this code correspond to? #1

Open HanYunZhang opened 2 years ago

HanYunZhang commented 2 years ago

I just could not find the paper "3D-Trajectory Design and Phase-Shift for RIS-Assisted UAV Communication using Deep Reinforcement Learning" in IEEEXplore

LiChiCheer commented 2 years ago

我只是在IEEEXplore中找不到论文"使用深度强化学习的RIS辅助无人机通信的3D轨迹设计和相移"。

请问你找到这个代码对应的文章了嘛?

HanYunZhang commented 2 years ago

Sry, still not.

HanYunZhang commented 2 years ago

Hello, how can I solve the error when running?

File "G:/研二下 代码学习/python/UAV-RIS-DRL(有论文)/run_ris_uav.py", line 20, in env = RIS_UAV() File "G:\研二下 代码学习\python\UAV-RIS-DRL(有论文)\RIS_UAV_env.py", line 93, in init self._build_ris_uav() File "G:\研二下 代码学习\python\UAV-RIS-DRL(有论文)\RIS_UAV_env.py", line 104, in _build_ris_uav self.location[0, :] = [rd.randint(0, 2_IOT_H/3), rd.randint(0, 2_IOT_W/3)] File "F:\anaconda\envs\pytorch\lib\random.py", line 222, in randint return self.randrange(a, b+1) File "F:\anaconda\envs\pytorch\lib\random.py", line 195, in randrange raise ValueError("non-integer stop for randrange()") ValueError: non-integer stop for randrange()

U need to change the num of IOT_H.

HanYunZhang commented 2 years ago

你把IOT_H 和IOT_W改成3的倍数

HanYunZhang commented 2 years ago

我用的1.x,改了那两个变量之后就直接运行了。2.x很多不和1.x兼容,你要想换的话,去看看mofan的视频,里面有讲,我没有换。

LiChiCheer commented 2 years ago

你好,请问方便加下联系方式嘛?最近在看无人机的环境部分,想一起交流一下

LiChiCheer commented 2 years ago

请问你有这篇关于DDPG的程序嘛

wtx3717 commented 2 years ago

Hello, in the experimental result graph, are the green dots in the 3-D trajectory graph and 2-D projection graph a RIS device? What I don't understand is that the coordinates of the green dots in 3-D are in line with the settings. The coordinates of (50,50,50). Why are the horizontal coordinates of 2d moved to about (500,500), please give me some pointers.

21111535 commented 2 years ago

您好,在实验结果图中,3-D轨迹图和2-D投影图中的绿点是RIS设备吗?我不明白的是3-D中绿点的坐标与设置一致。(50,50,50) 的坐标。为什么2d的横坐标移动到(500,500)左右,请大家指点。

同学这个问题,有解决吗?

wtx3717 commented 1 year ago

您好,在结果显示中,3-D 实验图和 2-D 投影图的绿点是 RIS 设备吗?我不明白的是 3-D 中绿点的坐标与设置一致。(50,50 ,50) 的坐标。为什么2d的横坐标移动到(500,500)左右,请大家指点。

同学这个问题,有解决吗?

现在还没有解决

wtx3717 commented 1 year ago

您好,在结果显示中,3-D 实验图和 2-D 投影图的绿点是 RIS 设备吗?我不明白的是 3-D 中绿点的坐标与设置一致。(50,50 ,50) 的坐标。为什么2d的横坐标移动到(500,500)左右,请大家指点。

同学这个问题,有解决吗?

同学这个问题你是怎么思考的 是不是我有没注意到的地方

Lemon673100493 commented 1 year ago

index 2000 is out of bounds for axis 1 with size 2000 你好,请问这个问题怎么解决

LiChiCheer commented 1 year ago

代码的plot程序里绘图参数有问题,原代码是500,我猜是写错了应该是50

发自我的iPhone

------------------ Original ------------------ From: wtx3717 @.> Date: Wed,Jul 13,2022 2:31 PM To: HaiboMei/UAV-RIS-DRL @.> Cc: LiChiCheer @.>, Comment @.> Subject: Re: [HaiboMei/UAV-RIS-DRL] Which paper does this code correspond to?(Issue #1)

您好,请问实验结果图,3d轨迹与2d投影中的绿色的点是RIS设备吗,有一点没看懂的是,这个绿色的点在3d中的坐标好像是符合设置的坐标(50,50,50)但是2d的水瓶坐标为什么都变化为(500,500)那个位置。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

wtx3717 commented 1 year ago

代码的plot程序里绘图参数有问题,原代码是500,我猜是写错了应该是50 发自我的iPhone ------------------ Original ------------------ From: wtx3717 @.> Date: Wed,Jul 13,2022 2:31 PM To: HaiboMei/UAV-RIS-DRL @.> Cc: LiChiCheer @.>, Comment @.> Subject: Re: [HaiboMei/UAV-RIS-DRL] Which paper does this code correspond to?(Issue #1) 您好,请问实验结果图,3d轨迹与2d投影中的绿色的点是RIS设备吗,有一点没看懂的是,这个绿色的点在3d中的坐标好像是符合设置的坐标(50,50,50)但是2d的水瓶坐标为什么都变化为(500,500)那个位置。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

你好 在plot文件的多少行

wtx3717 commented 1 year ago

代码的plot程序里绘图参数有问题,原代码是500,我猜是写错了应该是50 发自我的iPhone ------------------ Original ------------------ From: wtx3717 @.> Date: Wed,Jul 13,2022 2:31 PM To: HaiboMei/UAV-RIS-DRL @.> Cc: LiChiCheer @.>, Comment @.> Subject: Re: [HaiboMei/UAV-RIS-DRL] Which paper does this code correspond to?(Issue #1) 您好,请问实验结果图,3d轨迹与2d投影中的绿色的点是RIS设备吗,有一点没看懂的是,这个绿色的点在3d中的坐标好像是符合设置的坐标(50,50,50)但是2d的水瓶坐标为什么都变化为(500,500)那个位置。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

方便加个qq交流学习吗

LiChiCheer commented 1 year ago

代码的plot程序里绘图参数有问题,原代码是500,我猜是写错了应该是50 发自我的iPhone ------------------ Original ------------------ From: wtx3717 @.**> Date: Wed,Jul 13,2022 2:31 PM To: HaiboMei/UAV-RIS-DRL @.**> Cc: LiChiCheer @.**>, Comment @.**> Subject: Re: [HaiboMei/UAV-RIS-DRL] Which paper does this code correspond to?(Issue #1) 您好,请问实验结果图,3d轨迹与2d投影中的绿色的点是RIS设备吗,有一点没看懂的是,这个绿色的点在3d中的坐标好像是符合设置的坐标(50,50,50)但是2d的水瓶坐标为什么都变化为(500,500)那个位置。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

你好 在plot文件的多少行

3D坐标和2D坐标是两个独立的画图程序,要单独更改,具体程序看Res_plot.py文件里的plot_UAV_GT函数

wtx3717 commented 1 year ago

对不起,仍然没有。

现在有了 你可以下载 ,不过挺多错误的

你好可以价格联系方式交流一下吗

wtx3717 commented 1 year ago

代码的plot程序里绘图参数有问题,原代码是500,我猜是写错了应该是50 发自我的iPhone ... ------------------ 原始------------------ 来自: wtx3717 @.**>日期:2022 年 7 月 13 日星期三下午 2:31 收件人:海博美/UAV-RIS-DRL @.**> 抄送:利奇奇尔 @.**>,评论@。**> 主题:回复:[HaiboMei/UAV-RIS-DRL] 此代码对应于哪篇论文?(问题 #1) 您好,请问实验结果图,3d轨迹与2d投影中的绿色的点是RIS设备吗,有一点没看懂的是,这个绿色的点在3d中的坐标好像是符合设置的坐标(50,50,50)但是2d的水瓶坐标为什么都变化为(500,500)那个位置。— 直接回复此电子邮件,在 GitHub 上查看或取消订阅。您收到此消息是因为您发表了评论。消息 ID:_@_。***>

你好 在plot文件的多少行

3D坐标和2D坐标是两个独立的画图程序,要单独更改,具体程序看Res_plot.py文件里的plot_UAV_GT函数

老兄,再问您一个问题,为什么代码中平均吞吐量会相差那么大,文中不是每个地面节点都有固定的任务量吗 没怎么看懂代码中的结束条件finish

hangwuliuqi commented 1 year ago

想问一下大家有DDPG算法部分吗?