1 line
8.3 KiB
JavaScript
1 line
8.3 KiB
JavaScript
|
'use strict';(function(){const b={cache:!0};b.doc={id:'id',field:['title','content'],store:['title','href','section']};const a=FlexSearch.create('balance',b);window.bookSearchIndex=a,a.add({id:0,href:'/docs/developer/',title:"Developer Documentation",section:"Docs",content:"This is the developer documentation. (Work-in-progress)\n"}),a.add({id:1,href:'/docs/user/',title:"User Documentation",section:"Docs",content:"This is the user documentation. (Work-in-progress)\n"}),a.add({id:2,href:'/posts/week-4/',title:"Week 4",section:"Blog",content:"This week\u0026hellip;\nWork # Created blog Weekly 1:1 meeting # "}),a.add({id:3,href:'/posts/week-3/',title:"Week 3",section:"Blog",content:"Filming footage # At the start of the week I went into town to film some practise footage to work with later (up until this point I had been experimenting with footage limited by my bedroom walls). I took some basic vertical and horizontal footage of the town - no nature or breach footage yet.\nGaining more useful information # I used the footage I had recorded at the start of the week and revised my \u0026ldquo;filesize\u0026rdquo; code. I made a new function order_frames_by_filesize() which orders the frames by the filesize and prints the name of size of each frame in order.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 def order_frames_by_filesize(): \u0026#34;\u0026#34;\u0026#34;Order the frames by filesize and print the filenames and their sizes\u0026#34;\u0026#34;\u0026#34; frames = os.listdir(outputfolder) # sort the frames by their filesize frames = sorted(frames, key = lambda x: os.stat(os.path.join(outputfolder, x)).st_size, reverse = True) # print every frame and it\u0026#39;s size in a human readable format for frame in frames: filesize = os.stat(os.path.join(outputfolder, frame)).st_size if filesize \u0026gt; 1024: filesize = filesize / 1024 print(frame + \u0026#34;: \u0026#34; + str(filesize) + \u0026#34; KB\u0026#34;) else: print(frame + \u0026#34;: \u0026#34; + str(filesize)) Analysing datasets # There\u0026rsquo;s been a few datasets that I\u0026rsquo;ve previously looked at which could be useful to use for this project. I wasn\u0026rsquo;t sure how they would perform with the data I was expecting to use. AVA1 was trained on data that had been photographed under ideal conditions by profesionals. This won\u0026rsquo;t reflect the frames extracted by the footage in this project\u0026rsquo;s use case. I wasn\u0026rsquo;t sure if this distinction was significant enough to effect the results of a trained model. I had previously found a project2 which had models pretrained using AVA1 I could use to predict an aesthetic value from images I provided.\n1:1 Weekly meeting # We discussed that during week 4 I should be looking at implementing CNNs as training might take a while and therefore should be a priority. Look at what other people are doing with aesthetic analysis to get an idea on how the code works. Attempt to get a basic CNN working. N. Murray, L. Marchesotti and F. Perronnin, \u0026ldquo;AVA: A large-scale database for aesthetic visual analysis,\u0026rdquo; 2012 IEEE Conference on Computer Vision and Pattern Recognition, 2012, pp. 2408-2415, doi: 10.1109/CVPR.2012.6247954.\u0026#160;\u0026#x21a9;\u0026#xfe0e;\n Image Quality Assessment: https://github.com/idealo/image-quality-assessment - Idealo\u0026#160;\u0026#x21a9;\u0026#xfe0e;\n "}),a.add({id:4,href:'/posts/week-2/',title:"Week 2",section:"Blog",content:"This week I set up my repositories and starting writing some basic code.\nSet up # Before starting any coding, I wanted to set up my remote git repositories. I had already decided I wanted the project mirrored over two remote git repositories from different providers as a safety precaution. My intial plan was to use the university\u0026rsquo;s GitLab instance but as it\u0026rsquo;s recently been moved behind the firewall it would have made mirroring quite difficult. Instead, I decided to use my personal Gitea instance and mirror it to my personal account on the official GitLab instance.\n Gitea → GitLab\nGite
|