GithubHelp home page GithubHelp logo

crp94 / personalised-aesthetic-assessment-using-residual-adapters Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 2.0 23.02 MB

Jupyter notebooks used as supporting material for an msc thesis about personalised aesthetic assessment using residual adapters.

License: GNU General Public License v3.0

Jupyter Notebook 99.45% Python 0.55%
aesthetic-engine aesthetic-visual-analysis computer-vision deep-learning deep-learning-tutorial deep-neural-networks enhancement image-classification image-manipulation image-processing neural-networks notebook personalised-aesthetics-assessment photography picture residual-adapters thesis

personalised-aesthetic-assessment-using-residual-adapters's People

Contributors

crp94 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

personalised-aesthetic-assessment-using-residual-adapters's Issues

how can i set the K ?

I am a newer and have no idea to set the k in this script .
would you mind showing me the best performed script ?thanks !

np.vstack

Hello, thank you for your work, when I run the file I have encountered the following problems:
Adapters.py
Problem1:
try:
running_loss += loss.data[0]
except:
print('unexpected error, could not calculate loss or do a sum.')

During training, it outputs 'unexpected error, could not calculate loss or do a sum.'
So I changed running_loss + = loss.data [0] to running_loss + = loss.item ()

Problem2:
ratings_i=[(list(np.float_([j for j in i]))) for i in ratings]
predictions_i=[(list(np.float_([j for j in i]))) for i in predictions]
ratings_i=np.vstack(ratings)
predictions_i=np.vstack(predictions)

ratings_i has been assigned twice, I do n’t know what should be correct here,and the following problems occur during runtime
TypeError: can't convert CUDA tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
I tried modifying ratings_i = np.vstack (ratings) to ratings_i = np.vstack (ratings.cpu ()) but it didn't seem to solve the problem.
Can you help, thank you very much.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.