{"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"name":"python","version":"3.6.6","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":3004,"databundleVersionId":861823,"sourceType":"competition"}],"dockerImageVersionId":29850,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"!python --version","metadata":{"execution":{"iopub.status.busy":"2024-01-20T05:16:26.077294Z","iopub.execute_input":"2024-01-20T05:16:26.078017Z","iopub.status.idle":"2024-01-20T05:16:27.205995Z","shell.execute_reply.started":"2024-01-20T05:16:26.077934Z","shell.execute_reply":"2024-01-20T05:16:27.204785Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#取消http代理\n!git config --global --unset http.proxy\n \n#取消https代理\n!git config --global --unset https.proxy","metadata":{"execution":{"iopub.status.busy":"2024-01-20T05:20:48.499674Z","iopub.execute_input":"2024-01-20T05:20:48.500104Z","iopub.status.idle":"2024-01-20T05:20:50.695707Z","shell.execute_reply.started":"2024-01-20T05:20:48.500045Z","shell.execute_reply":"2024-01-20T05:20:50.694401Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!git clone https://github.com/thoughtworksarts/EmoPy","metadata":{"execution":{"iopub.status.busy":"2024-01-20T05:21:33.229867Z","iopub.execute_input":"2024-01-20T05:21:33.230250Z","iopub.status.idle":"2024-01-20T05:21:40.547105Z","shell.execute_reply.started":"2024-01-20T05:21:33.230201Z","shell.execute_reply":"2024-01-20T05:21:40.545800Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cd EmoPy","metadata":{"execution":{"iopub.status.busy":"2024-01-20T05:21:44.237573Z","iopub.execute_input":"2024-01-20T05:21:44.238087Z","iopub.status.idle":"2024-01-20T05:21:44.245177Z","shell.execute_reply.started":"2024-01-20T05:21:44.238012Z","shell.execute_reply":"2024-01-20T05:21:44.244107Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pip install -r requirements.txt","metadata":{"execution":{"iopub.status.busy":"2024-01-20T05:21:45.899944Z","iopub.execute_input":"2024-01-20T05:21:45.900298Z","iopub.status.idle":"2024-01-20T05:23:17.532944Z","shell.execute_reply.started":"2024-01-20T05:21:45.900247Z","shell.execute_reply":"2024-01-20T05:23:17.530473Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from EmoPy.src.fermodel import FERModel\nfrom pkg_resources import resource_filename\n\ntarget_emotions = ['calm', 'anger', 'happiness']\nmodel = FERModel(target_emotions, verbose=True)\n\nprint('Predicting on happy image...')\nmodel.predict(resource_filename('EmoPy.examples','image_data/sample_happy_image.png'))","metadata":{"execution":{"iopub.status.busy":"2024-01-20T05:24:25.665581Z","iopub.execute_input":"2024-01-20T05:24:25.666544Z","iopub.status.idle":"2024-01-20T05:24:26.766645Z","shell.execute_reply.started":"2024-01-20T05:24:25.666489Z","shell.execute_reply":"2024-01-20T05:24:26.765517Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}