Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/XR-stb/DQN_WUKONG
/ functions
Functions
227 in github.com/XR-stb/DQN_WUKONG
⨍
Functions
227
◇
Types & classes
40
↓ 1 callers
Function
is_window_visible
(window_title)
utils/change_window.py:32
↓ 1 callers
Method
judge
( self, action_name, injured, cur_status, next_status, events,
judge.py:223
↓ 1 callers
Method
load_config
从 YAML 文件中加载配置
actions.py:44
↓ 1 callers
Function
load_data_from_directory
从指定目录加载以指定前缀命名的 CSV 数据文件,并累加每个文件的 Reward 列的总和。
train_data/show_rewards.py:6
↓ 1 callers
Method
load_template_once
加载模板图像并缓存,如果已经加载过则直接使用缓存。
window.py:51
↓ 1 callers
Function
main
()
main.py:35
↓ 1 callers
Function
main
()
utils/find_blood_location.py:9
↓ 1 callers
Function
main
()
utils/move_view.py:52
↓ 1 callers
Function
main
()
train_data/show_reward_avg.py:70
↓ 1 callers
Function
main
主函数,生成奖励曲线图和数据文件。
train_data/show_rewards.py:51
↓ 1 callers
Function
main
()
bench/grab_bench.py:88
↓ 1 callers
Function
main_loop
()
utils/display_game_info.py:150
↓ 1 callers
Function
move_mouse_to_position
(position)
utils/move_view.py:45
↓ 1 callers
Function
move_window
(title, x, y)
utils/change_window.py:19
↓ 1 callers
Function
plot_boss_health
绘制 Boss 血量曲线图及每10局的平均血量曲线。
train_data/show_boss_blood.py:5
↓ 1 callers
Function
plot_performance
(win32_times, dxcam_times, num_frames)
bench/grab_bench.py:76
↓ 1 callers
Function
plot_rewards
绘制奖励曲线
train_data/show_reward_avg.py:46
↓ 1 callers
Function
plot_total_rewards
绘制每局结束时的总奖励分曲线和每10局的平均奖励曲线。
train_data/show_rewards.py:25
↓ 1 callers
Function
preprocess_image
(image)
utils/move_view.py:17
↓ 1 callers
Method
process_color
(self)
window.py:109
↓ 1 callers
Function
reload_config
()
utils/action_tool.py:31
↓ 1 callers
Method
reopen_shared_memory
在子进程中重新打开共享内存
context.py:65
↓ 1 callers
Method
reset
(self)
judge.py:15
↓ 1 callers
Method
run
主运行循环
process_handler.py:239
↓ 1 callers
Method
save_boss_health_data
保存 Boss 血量数据到同一个 CSV 文件中。
tracker.py:57
↓ 1 callers
Method
save_episode_data
将每局的奖励数据保存到 CSV 文件,文件名使用时间戳避免覆盖。
tracker.py:46
↓ 1 callers
Method
save_model
(self)
models/ppo.py:427
↓ 1 callers
Method
save_overall_data
保存所有局的总奖励数据,文件名使用时间戳避免覆盖。
tracker.py:69
↓ 1 callers
Method
sendMouse
(self, dx, dy, buttons)
keys.py:500
↓ 1 callers
Method
set_offset
(offset_x, offset_y)
window.py:25
↓ 1 callers
Function
set_windows_offset
(frame)
window.py:315
↓ 1 callers
Method
store_data
(self, s, a, r, s_next, done, logprob_a, this_epo_step)
models/ppo.py:384
↓ 1 callers
Method
store_metadata
将元数据存入共享内存
context.py:69
↓ 1 callers
Method
train_network
(self)
models/ppo.py:299
↓ 1 callers
Method
update_status
(self)
context.py:110
↓ 1 callers
Method
update_status
更新多个变量的状态。 :param kwargs: 以变量名为键,变量值为值的键值对
utils/display_game_info.py:126
↓ 1 callers
Method
update_target_network
(self)
models/ddqn.py:117
↓ 1 callers
Method
update_target_network
(self)
models/ddqn_resnet.py:115
↓ 1 callers
Method
update_target_network
(self)
models/ppo.py:458
↓ 1 callers
Method
update_target_network
(self)
models/dqn.py:116
↓ 1 callers
Function
wait_for_game_window
(running_event)
main.py:26
↓ 1 callers
Function
wait_for_game_window
()
utils/display_game_info.py:28
↓ 1 callers
Method
write_frame_and_status
将画面和状态信息写入共享内存
context.py:170
Method
Hardware
(self, message, parameter=0)
keys.py:545
Method
KeybdInput
(self, code, flags)
keys.py:528
Method
__init__
(self, frame_buffer_size=3)
context.py:12
Method
__init__
(self, logger)
log.py:45
Method
__init__
初始化动作执行器,并从配置文件加载动作
actions.py:16
Method
__init__
(self, context, running_event)
process_handler.py:18
Method
__init__
(self, train_data_dir)
tracker.py:8
Method
__init__
(self, common = None)
keys.py:282
Method
__init__
(self, keys)
keys.py:429
Method
__init__
(self)
judge.py:7
Method
__init__
(self, sx, sy, ex, ey)
window.py:16
Method
__init__
(self, sx, sy, ex, ey)
window.py:98
Method
__init__
(self, sx, sy, ex, ey)
window.py:119
Method
__init__
(self, sx, sy, ex, ey, blood_gray_min=117, blood_gray_max=255)
window.py:152
Method
__init__
(self, sx, sy, ex, ey, blood_gray_min=117, blood_gray_max=255)
window.py:169
Method
__init__
(self, sx, sy, ex, ey, skill_gray_min=90, skill_gray_max=160)
window.py:226
Method
__init__
(self, sx, sy, ex, ey)
window.py:242
Method
__init__
(self, sx, sy, ex, ey)
window.py:247
Method
__init__
(self, sx, sy, ex, ey)
window.py:252
Method
__init__
(self, sx, sy, ex, ey)
window.py:257
Method
__init__
(self, sx, sy, ex, ey)
window.py:262
Method
__init__
(self, sx, sy, ex, ey, hulu_gray_min=120, hulu_gray_max=255)
window.py:267
Method
__init__
(self, root)
utils/display_game_info.py:95
Method
__init__
(self, state_h, state_w, action_dim, context_dim)
models/ddqn.py:11
Method
__init__
(self, config, model_file)
models/base_agent.py:9
Method
__init__
(self, state_dim, action_dim, context_dim, config, model_file)
models/ddqn_resnet.py:42
Method
__init__
(self)
models/ppo.py:14
Method
__init__
(self, state_dim, action_dim, net_width)
models/ppo.py:29
Method
__init__
(self, state_dim, action_dim, net_width)
models/ppo.py:83
Method
__init__
(self, state_dim, net_width)
models/ppo.py:121
Method
__init__
(self, state_h, state_w, action_dim, context_dim)
models/dqn.py:12
Method
__repr__
(self)
window.py:92
Method
_execute_actions
从队列中执行动作。
actions.py:64
Method
choose_action
(self, state)
models/ddqn.py:60
Method
choose_action
Choose an action based on the state. Returns: tuple: (action, log_prob)
models/base_agent.py:26
Method
choose_action
(self, state)
models/ddqn_resnet.py:59
Method
choose_action
(self, state)
models/dqn.py:61
Function
classtimeit
装饰器,用于测量函数的执行时间并打印出来。 支持类成员函数的装饰。
timing_decorator.py:25
Function
click_and_crop
(event, x, y, flags, param)
utils/show_game_window.py:32
Method
conv2d_size_out
(size, kernel_size=5, stride=1, padding=2)
models/ddqn.py:18
Method
conv2d_size_out
(size, kernel_size=5, stride=1, padding=2)
models/dqn.py:19
Function
correction_window
()
utils/change_window.py:58
Method
directKey
(self, key, direction = None, type = None)
keys.py:400
Function
dxcam_grab_screen
(region=None)
bench/grab_bench.py:51
Method
forward
(self, x, context_features)
models/ddqn.py:28
Method
forward
(self, x, context_features)
models/ddqn_resnet.py:33
Method
forward
(self, x)
models/ppo.py:21
Method
forward
(self, state_img, state_vec)
models/ppo.py:69
Method
forward
(self, state)
models/ppo.py:130
Method
forward
(self, x, context_features)
models/dqn.py:29
Method
get_log_prob
(self, state, action)
models/ppo.py:113
Function
get_window_position
(title)
utils/change_window.py:10
Function
grab_screen
()
grabscreen.py:19
Function
init_camera
(target_fps)
grabscreen.py:10
Method
load_model
(self)
models/base_agent.py:52
Function
on_action_finished
()
utils/action_tool.py:50
Function
on_click
(x, y, button, pressed)
utils/action_tool.py:126
← previous
next →
101–200 of 227, ranked by callers