-
Notifications
You must be signed in to change notification settings - Fork 397
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
Topic recognition - 45799930 #437
base: topic-recognition
Are you sure you want to change the base?
Commits on Oct 13, 2022
-
Initial Commit - Folder Created
The initial setup has been done on pycharm and a folder in the recognition directory has been added called 45799930 (my student number). All files required for this assignment have been added under this directory.
Configuration menu - View commit details
-
Copy full SHA for 648ef2d - Browse repository at this point
Copy the full SHA 648ef2dView commit details -
Class code for importing the datasets and converting the filenames into TensorFlow datasets
Configuration menu - View commit details
-
Copy full SHA for d06c4b6 - Browse repository at this point
Copy the full SHA d06c4b6View commit details -
The initialisation of class variables was incorrect, as well as the file path names for the folders containing the data. Also added in a check to make sure the truth for every set is the same size of that set.
Configuration menu - View commit details
-
Copy full SHA for 72af4ad - Browse repository at this point
Copy the full SHA 72af4adView commit details -
Doc Strings added for dataset.py
Added proper docstrings for the function in the class. I also added some new class variables so we can access the width and height of the images.
Configuration menu - View commit details
-
Copy full SHA for 0e44644 - Browse repository at this point
Copy the full SHA 0e44644View commit details
Commits on Oct 18, 2022
-
Initial Model Function without Segmentation Layer
The function to create the model has been created with the improved UNet structure. I have done the downsampling through the 5 layers and upsampling back up. But have not implemented the segmentation layer and concatenated them from layers 3, 2 and 1, which are at the end of the structure.
Configuration menu - View commit details
-
Copy full SHA for 1d96d81 - Browse repository at this point
Copy the full SHA 1d96d81View commit details -
Added seperate context_module function
Created context_module function as this cleaned up the create_module function as it was getting messy and hard to understand. Made sure to normalise and have the dropout layer in between the two conv layers.
Configuration menu - View commit details
-
Copy full SHA for 0415f3e - Browse repository at this point
Copy the full SHA 0415f3eView commit details
Commits on Oct 19, 2022
-
Added separate upsample_module function
Added module function for upsampling to clean up the create_model function.
Configuration menu - View commit details
-
Copy full SHA for e59563f - Browse repository at this point
Copy the full SHA e59563fView commit details -
Based on the improved UNet need to change the Maxpooling to a Conv with a stride of 2. I also needed to add the element-wise sum for the encoder side of things. The encoder structure should be complete now.
Configuration menu - View commit details
-
Copy full SHA for 9a122bd - Browse repository at this point
Copy the full SHA 9a122bdView commit details -
Added and Edited Documentation
Added documentation for the new functions created and changed the spacing of the encoder part of create_module so it corresponds with the layers on the improved UNet. structure.
Configuration menu - View commit details
-
Copy full SHA for a251fc0 - Browse repository at this point
Copy the full SHA a251fc0View commit details -
Added localisation module function to clean up create module function. I changed the concatenate lines as they were doing one of the wrong variables. Added the segmentation layers as well at the end, the element-wise sum of them and added the softmax layer to finish off the module.
Configuration menu - View commit details
-
Copy full SHA for c90a00f - Browse repository at this point
Copy the full SHA c90a00fView commit details -
Title and subtitles added to README.md based on requirements stated in the task sheet in the README description and its marking criteria.
Configuration menu - View commit details
-
Copy full SHA for bf5f872 - Browse repository at this point
Copy the full SHA bf5f872View commit details -
README Address Reproducibility info
Added information for the address reproducibility for this assignment to run in the README.md file.
Configuration menu - View commit details
-
Copy full SHA for f19d20d - Browse repository at this point
Copy the full SHA f19d20dView commit details -
train.py initial class structure
Imported needed functions from modules and classes from datasets. Also calls these in the init method so that immediately we get the dataset and module created.
Configuration menu - View commit details
-
Copy full SHA for fc96a9c - Browse repository at this point
Copy the full SHA fc96a9cView commit details
Commits on Oct 20, 2022
-
A function was created in train.py, which calculates the dice similarity coefficient of two images that will be passed in as tensors. This is based on the link in the task sheet.
Configuration menu - View commit details
-
Copy full SHA for 4a63ca7 - Browse repository at this point
Copy the full SHA 4a63ca7View commit details -
Found the need to preprocess the data because the dataset in past has just contained the path to the images so created this method so that we can map the data to the right location.
Configuration menu - View commit details
-
Copy full SHA for 9bb0293 - Browse repository at this point
Copy the full SHA 9bb0293View commit details -
Changed download_dataset so that it automatically processes the data. This then meant class variable names were changed, which had a flow-on effect through the class and separated the processing of the image and the truth as I would otherwise have to change my dataset into a tuple for the data and truth sets.
Configuration menu - View commit details
-
Copy full SHA for b99fbc3 - Browse repository at this point
Copy the full SHA b99fbc3View commit details -
Added key information on the preprocessing of the data that was just compleated. Also added some small changes, such as Author and student ID and did some more basic formatting to make it clearer to read.
Configuration menu - View commit details
-
Copy full SHA for bd0662d - Browse repository at this point
Copy the full SHA bd0662dView commit details -
added doc strings to the functions that were missing their own while modifying others that had changed since they were first written.
Configuration menu - View commit details
-
Copy full SHA for d796b4e - Browse repository at this point
Copy the full SHA d796b4eView commit details -
I had problems trying to implement model.fit and using batch with the current structure of the data, so I found out it would be easier if used from_tensor_slices to make them into tensors with two elements.
Configuration menu - View commit details
-
Copy full SHA for f21b782 - Browse repository at this point
Copy the full SHA f21b782View commit details -
Tensor Slices Zero Error Fixed
When running, there was a problem with using from_tensor_slices twice as it had one of the dimensions as none, and we couldn’t combine two tensors like that. It was changed so when the tensor slices are first called it forms two-dimensional tensors. This means the pre_processing had to be combined as passing it into the map with include both the image and truth
Configuration menu - View commit details
-
Copy full SHA for a6f89e5 - Browse repository at this point
Copy the full SHA a6f89e5View commit details -
The initial element-wise sum was trying to sum up the wrong variable, so they were in incompatible shapes. Segmentation layers when trying to add were also in the wrong shaps so added upsampling where required.
Configuration menu - View commit details
-
Copy full SHA for e9585ef - Browse repository at this point
Copy the full SHA e9585efView commit details -
Function created to print out the result of the epochs once the model has been trained. Changed to functions rather than a class as the class structure is not required and makes it more complex.
Configuration menu - View commit details
-
Copy full SHA for 41d998d - Browse repository at this point
Copy the full SHA 41d998dView commit details -
Instead of using all the datasets, as there is already a large amount of data in the training dataset, we split that dataset into three o create all the testing, training and validating data sets. The same was done for the truth. This them was updated in the readme
Configuration menu - View commit details
-
Copy full SHA for a90f633 - Browse repository at this point
Copy the full SHA a90f633View commit details
Commits on Oct 21, 2022
-
Added all the information and justification on the split of the datasets in the readme file.
Configuration menu - View commit details
-
Copy full SHA for 6a26a71 - Browse repository at this point
Copy the full SHA 6a26a71View commit details -
Description Problem Algorithm Solves
Added information for what the algorithm is that we are using and the problem that it solves to the readme. Images were added to the readme so a images folder was also added for ease and cleanliness.
Configuration menu - View commit details
-
Copy full SHA for aea443a - Browse repository at this point
Copy the full SHA aea443aView commit details -
Added graphs for the output of the program and added the rest of the information for the read me
Configuration menu - View commit details
-
Copy full SHA for 35089fc - Browse repository at this point
Copy the full SHA 35089fcView commit details -
Added the main function in predict and modified the print of the history as accuracy has changed to the dice coefficent.
Configuration menu - View commit details
-
Copy full SHA for 2fa52de - Browse repository at this point
Copy the full SHA 2fa52deView commit details -
Changed so that the original image should have 3 channels so that it is an RBG image. This seemed to fix the error that would only occur sometimes.
Configuration menu - View commit details
-
Copy full SHA for 7b86aea - Browse repository at this point
Copy the full SHA 7b86aeaView commit details