Skip to content
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

添加资源 #23

Merged
merged 29 commits into from
Jan 21, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
837cd65
增加macOS支持cmake编译
DaChengTechnology Jan 13, 2022
ac1aa98
Merge branch 'main' of https://github.com/scarsty/node-editor into sc…
DaChengTechnology Jan 13, 2022
94bea9b
修复Cannot create __weak reference
DaChengTechnology Jan 13, 2022
d5d78ec
a
DaChengTechnology Jan 13, 2022
dc72952
Merge branch 'main' into main
DaChengTechnology Jan 13, 2022
5a317e1
add MRC
DaChengTechnology Jan 13, 2022
820082c
Merge branch 'main' of https://github.com/scarsty/node-editor into sc…
DaChengTechnology Jan 13, 2022
3b02201
fix yaml
DaChengTechnology Jan 13, 2022
09ffe10
可以生成app 但是 会报空指针
DaChengTechnology Jan 19, 2022
da7a303
Merge remote-tracking branch 'upstream/main'
DaChengTechnology Jan 19, 2022
fde185d
macOS 运行成功
DaChengTechnology Jan 20, 2022
56fbbf8
改名
DaChengTechnology Jan 20, 2022
493d57d
nn
DaChengTechnology Jan 20, 2022
ee6d266
Merge branch 'main' of https://github.com/DaChengTechnology/node-editor
DaChengTechnology Jan 20, 2022
1cdd9cd
修改名字
DaChengTechnology Jan 20, 2022
cb66d4d
Merge branch 'main' of https://github.com/scarsty/nn-editor into scar…
DaChengTechnology Jan 20, 2022
d16013e
1
DaChengTechnology Jan 20, 2022
2109d10
修改cmake
DaChengTechnology Jan 20, 2022
355bf5c
fix 25ad188654dd93c1e6cb562999874d5f83da57e3
DaChengTechnology Jan 20, 2022
fe81310
Merge branch 'main' into main
DaChengTechnology Jan 20, 2022
401f3e2
修复 info位置
DaChengTechnology Jan 20, 2022
b2f4a3b
修复info
DaChengTechnology Jan 20, 2022
962cdf6
Merge branch 'main' of https://github.com/DaChengTechnology/node-editor
DaChengTechnology Jan 20, 2022
825aa51
Merge branch 'main' into main
DaChengTechnology Jan 20, 2022
52d2bbc
Merge branch 'scarsty:main' into main
DaChengTechnology Jan 21, 2022
e60ea8a
修复编译
DaChengTechnology Jan 21, 2022
986ca84
fix install
DaChengTechnology Jan 21, 2022
ac83292
fix resouce
DaChengTechnology Jan 21, 2022
0e62fe9
review main
DaChengTechnology Jan 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
修复info
  • Loading branch information
DaChengTechnology committed Jan 20, 2022
commit b2f4a3b441c66d3af3b6c4420e9701f9e902cc99
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ if (UNIX)
target_link_directories (${PROJECT_NAME} PRIVATE /usr/local/lib)
target_link_libraries (${PROJECT_NAME} PRIVATE dl)
endif ()
find_package(YAML-CPP)
target_include_directories(${PROJECT_NAME} PRIVATE ${YAML-CPP_INCLUDE_DIRS})
target_link_libraries (${PROJECT_NAME} PRIVATE yaml-cpp)
if(NOT APPLE)
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
Expand Down
4 changes: 2 additions & 2 deletions nn-editor/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>org.stt.node-editor</string>
<string>org.stt.nn-editor</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Neural Net Editor</string>
<string>nn-editor</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
Expand Down
14 changes: 1 addition & 13 deletions nn-editor/yamlyololoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,17 @@ static Node yaml2l(YAML::Node y)

void yamlyoloLoader::fileToNodes(const std::string& filename, std::deque<Node>& nodes)
{
<<<<<<< HEAD
YAML::Node config;
config = YAML::LoadFile(filename);
auto back = config["backbone"];
=======
config_ = YAML::LoadFile(filename);
auto back = config_["backbone"];
>>>>>>> da7a303340aea839da2a37c9846872a1cd3696f1
for (size_t i = 0; i < back.size(); i++)
{
auto n = yaml2l(back[i]);
n.title = "back_" + std::to_string(i);
nodes.emplace_back(std::move(n));
}
<<<<<<< HEAD
auto head = config["head"];
=======
auto head = config_["head"];
>>>>>>> da7a303340aea839da2a37c9846872a1cd3696f1

for (size_t i = 0; i < head.size(); i++)
{
auto n = yaml2l(head[i]);
Expand Down Expand Up @@ -83,9 +75,6 @@ void yamlyoloLoader::fileToNodes(const std::string& filename, std::deque<Node>&
}

void yamlyoloLoader::nodesToFile(const std::deque<Node>& nodes, const std::string& filename)
<<<<<<< HEAD
{}
=======
{
std::vector<Node*> nodes_turn;
push_cal_stack((Node*)&nodes[0], 1, nodes_turn, true);
Expand Down Expand Up @@ -155,4 +144,3 @@ void yamlyoloLoader::nodesToFile(const std::deque<Node>& nodes, const std::strin
fout << config_;

}
>>>>>>> da7a303340aea839da2a37c9846872a1cd3696f1