Skip to content

Input selection bug fix#79

Merged
AntoxaBarin merged 26 commits intomainfrom
input_selection_bugfix
Dec 21, 2023
Merged

Input selection bug fix#79
AntoxaBarin merged 26 commits intomainfrom
input_selection_bugfix

Conversation

@AntoxaBarin
Copy link
Contributor

Выбор входов не отображался из-за изменения формата строки, сыпались ошибки, и окно параметров не открывалось.

@lpetrov02 lpetrov02 force-pushed the task181_train_with_dataloader branch from ee60415 to 9c984d0 Compare December 18, 2023 18:31
Makes preparations for metrics logging on python
Functionality for c++ http added, but not working yet
Adds saving train metrics
Adds saving train metrics and responding with PNG

Adaptates code for new 4D blob

cpprest CI support
Add load possibility for zip
Add load possibility for png on predict
-------
GRA-122: Data loader implementation (#67)
Data loader implementation
-------
ID-154: Loss type selection (#70)
* Add loss type selection
* Add loss type selection
* Remove layer-class loss
* Clean up Loss type
* Make format
-------
ID-171: Fix input selection (#69)
* Fix input selection
* Clean up fix input selection
-------
Change train and predict for zip file case
Starts fixing train
Fixes train with dataloader
It's not fucking working :( (x3)
server train fix
Fixes train and predcit
@lpetrov02 lpetrov02 force-pushed the task181_train_with_dataloader branch from 9c984d0 to 47b519c Compare December 18, 2023 18:56
@Artem-Goldenberg
Copy link
Contributor

Уфф ну надо пофиксить конфликты) Ну там я так понимаю просто принимаешь то что есть, хотя все равно смотри на всякий случай чтоб свое не затереть

@AntoxaBarin
Copy link
Contributor Author

Я решил конфликты, надо проверить, что я там ничего лишнего не убрал

Copy link
Contributor

@Artem-Goldenberg Artem-Goldenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, убери тут вот это и можно вливать

vector<size_t> Shape::getDims() const {
vector<size_t> dims;
for (int i = 0; i < 4; i++) {
for (int i = 4 - dimsCount; i < 4; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вот это надо оставить как было, это мы специально поменяли

Comment on lines +17 to +21
std::string name = "";

virtual std::string getName() const {
return name;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вот это вроде договорились что тоже не надо

Comment on lines +168 to +188
void extract_from_zip(std::string path, std::string root) {
zip_t* z;
int err;
z = zip_open(path.c_str(), 0, &err);
if (z == nullptr) {
throw std::runtime_error("File doesn't exist");
}
zip_stat_t info;
for (int i = 0; i < zip_get_num_files(z); ++i) {
if (zip_stat_index(z, i, 0, &info) == 0) {
ofstream fout(root + "/" + info.name, ios::binary);
zip_file* file = zip_fopen_index(z, i, 0);
std::vector<char> file_data(info.size);
zip_fread(file, file_data.data(), info.size);
fout.write(file_data.data(), info.size);
fout.close();
}
}
std::filesystem::remove(path);
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это тоже можешь пока убрать, оно в моем пре есть

@Artem-Goldenberg
Copy link
Contributor

Кстати еще остался баг с тем, что удаляешь слой, а во входах он не удаляется

@AntoxaBarin
Copy link
Contributor Author

Починил этот баг, утром посмотрю комментарии выше

@Artem-Goldenberg
Copy link
Contributor

Все хорошо, можно вливать

Base automatically changed from task181_train_with_dataloader to main December 20, 2023 18:55
AntoxaBarin and others added 3 commits December 21, 2023 09:54
# Conflicts:
#	py_server/mlcraft/dataset.py
#	py_server/mlcraft/server.py
#	server/api/server.cpp
#	server/core/Layer.cpp
@AntoxaBarin AntoxaBarin merged commit 2b77065 into main Dec 21, 2023
@AntoxaBarin AntoxaBarin deleted the input_selection_bugfix branch December 21, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants