Coder Social home page Coder Social logo

x-nesyl's Introduction

architectural_style_classification

Usage

Provide path to the data inside config.py It is expected to follow the branching present originally in the dataset, otherwise perform adequat change to config.py and dataloader.py

Folder organisation

  • Root
    • Data
      • Dataset-IGRB1092_14cls
        • original disposition of the dataset
        • csv for training are created here (provided in this project, feel free to move them at the right place)
      • pascalPartDataset
        • original disposition of the dataset
        • txt for training are created here (provided in this project, feel free to move them at the right place)
    • MonuMAI-AutomaticStyleClassification (my branch)
    • pytorch-retinanet (my branch)
    • architectural_style_classification (this project)

If the folder organisation if different, change the various import path + the config.py file.

How to run

First run 'python build-csv.py' Then 'train.py' default parameter should work

Models

Models can be found at : https://cloud.minesparis.psl.eu/index.php/s/TBKECKgGZoMp1aQ

x-nesyl's People

Contributors

julessanchez avatar

Stargazers

Jan Stodt avatar Rim El Cheikh avatar Darrell Young avatar Minji Cho avatar Roberto Confalonieri avatar  avatar  avatar Natalia Díaz Rodríguez avatar

Watchers

James Cloos avatar Natalia Díaz Rodríguez avatar  avatar  avatar  avatar

x-nesyl's Issues

bug - compare_shap_and_KG

Values written to

archi_features = [el for sublist in list(MonMonumenAI.ELEMENT_DIC.values()) for el in sublist]
are overwritten in
archi_features = [el for sublist in list(MonPascal.ELEMENT_DIC.values()) for el in sublist]

Meaning that MonuMAI dataset can't be used without modifying the previous code and

if dataset == 'MonumenAI':
knowledge_graph = knowledge_graph_monumenai
if dataset == 'PascalPart':
knowledge_graph = knowledge_graph_pascal
contrib = np.zeros((len(true_labels),len(archi_features)))

The should have either unique identifiers or change

contrib = np.zeros((len(true_labels),len(archi_features)))
to contrib = np.zeros((len(true_labels), knowledge_graph.shape[0]))

bug - GED_metric

facade = np.copy(shap_array[i,:,k])*features[k]
presumably should be features[i], otherwise only the first 4 are used, due to
shap_array = np.dstack((shap_values[0],shap_values[1],shap_values[2],shap_values[3]))
and
for k in range(shap_array.shape[-1]):
and if the number of object classes is greater than the batch size the code would produce an Index Out of Bounds exception, if line 162 didn't limit it to 4.

facade[facade<threshold] = 1
facade[facade>=threshold] = 0
makes all features 0 always, which mean it does no contribution to the facade graph.

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.