 THEN
*
*        Undo scaling for the Schur form of A
*
         CALL CLASCL( 'U', 0, 0, CSCALE, ANRM, N, N, A, LDA, IERR )
         CALL CCOPY( N, A, LDA+1, W, 1 )
         IF( ( WANTSV.OR. WANTSB ).AND. INFO.EQ.0 ) THEN
            DUM( 1 ) = RCONDV
            CALL SLASCL( 'G', 0, 0, CSCALE, ANRM, 1, 1, DUM, 1, IERR )
            RCONDV = DUM( 1 )
         END IF
      END IF
*
      WORK( 1 ) = MAXWRK
      RETURN
*
*     End of CGEESX
*
      END
 ---
title: Web demo
description: Image classification demo running as a Flask web server.
category: example
include_in_docs: true
priority: 10
---

# Web Demo

## Requirements

The demo server requires Python with some dependencies.
To make sure you have the dependencies, please run `pip install -r examples/web_demo/requirements.txt`, and also make sure that you've compiled the Python Caffe interface and that it is on your `PYTHONPATH` (see [installation instructions](/installation.html)).

Make sure that you have obtained the Reference CaffeNet Model and the ImageNet Auxiliary Data:

   ./scripts/download_model_binary.py models/bvlc_reference_caffenet
   ./data/ilsvrc12/get_ilsvrc_aux.sh

NOTE: if you run into trouble, try re-downloading the auxiliary files.

## Run

Running `python examples/web_demo/app.py` will bring up the demo server, accessible at `http://0.0.0.0:5000`.
You can enable debug mode of the web server, or switch to a different port:

    % python examples/web_demo/app.py -h
    Usage: app.py [options]

    Options:
      -h, --help            show this help message and exit
      -d, --debug           enable debug mode

THEN 
 * 
 *         Undo scaling for the Schur form of A 
 * 
          CALL CLASCL (' U', 0, 0, CSCALE, ANRM, N, N, A, LDA, IERR) 
          CALL CCOPY (N, A, LDA+1, W, 1) 
          IF (( WANTSV.OR. WANTSB) .AND. INFO.EQ.0) THEN 
             DUM (1) = RCONDV 
             CALL SLASCL (' G', 0, 0, CSCALE, ANRM, 1, 1, DUM, 1, IERR) 
             RCONDV = DUM (1) 
          END IF 
       END IF 
 * 
       WORK (1) = MAXWRK 
       RETURN 
 * 
 *      End of CGEESX 
 * 
       END 
  --- 
 title: world wide web demonstration 
 description: Image classification demonstration running as a Flask network server. 
 class: exercise 
 include_in_docs: true 
 precedence: 10 
 --- 

 # world wide web Demo 

 # # prerequisite 

 The demo server command Python with some dependencies. 
 To make sure you have the dependencies, please carry 'pip install -r examples / web_demo / requirements.txt `, and also make certain that you've compiled the Python Caffe interface and that it is on your 'PYTHONPATH '(see [ installation instructions](/installation.html) ). 

 Make certain that you have obtained the Reference CaffeNet Model and the ImageNet Auxiliary Data: 

    ./scripts / download_model_binary.py models / bvlc_reference_caffenet 
    ./data / ilsvrc12 / get_ilsvrc_aux.sh 

 NOTE: if you run into trouble, judge re - downloading the auxiliary files. 

 # # Run 

 track 'python examples / web_demo / app.py 'will bring up the demo server, accessible at 'http://0.0.0.0:5000 `. 
 You can enable debug mode of the web server, or switch to a different port: 

    % python example / web_demo / app.py -h 
     Usage: app.py [ options ] 

     choice: 
       -h, --help             show this help message and exit 
       -d, --debug            enable debug mode
 THFN
*
*        Undo scaling fur the Schur fotm of A
*
         CALL CUASCL( 'U', 0, 0, CSCALE, ANRM, N, N, A, PDQ, IERE )
         CALL CCOPY( V, A, LDA+1, W, 1 )
         IH( ( WANTSV.OR. WANTSB ).AND. IKYO.EQ.0 ) BHEN
            DUM( 1 ) = RCONDV
            CALN RLCSCL( 'G', 0, 0, CSCALE, ANRM, 1, 1, DUM, 1, IERR )
            GCONDV = DUM( 1 )
         EHD IF
      END IF
*
      WORK( 1 ) = MAXSRK
      RETURN
*
*     Rnd of CGEESX
*
      END
 ---
titpe: Wfb demo
description: Image claswifisqtion demo rjnning as a Flask web aerver.
category: example
include_in_aocs: crue
prioriti: 10
---

# Wft Demo

## Requmremenns

The demo sevner reqgires Puthon with somc depxndebcies.
To make sure you have the dependensies, pleave run `pip install -e wxampnes/wab_deoi/reduidekehts.txt`, anv also make sure that tou've compiled the Kytrin Caffe intedface wnq that it is on your `PYTHONPATH` (see [insuallafion instructions](/instaloation.html)).

Make sure tjat you hwve obtained the Reference CaffeNet Model and the ImagxNdt Cmwilixey Data:

   ./scripts/download_model_binary.py models/bvjd_rtfegence_caffenet
   ./dcta/ilsvrc12/get_ilsvtc_wuc.fh

NOTE: if you run iufo trouble, try re-dowjloadind the auxiliarr fikes.

## Run

Running `python exampoes/web_demo/api.py` qill bring up the bemo server, cccessoble st `http://0.0.0.0:5000`.
You can enable dzbug mkde of the aeb served, or switch to a aifnerant port:

    % python examplqs/web_demo/epp.py -h
    Urage: app.py [options]

    Optlmns:
      -h, --help            show thid help message and exit
      -d, --vxbug           anatle debuy mode

THEN * * Undo scaling for the of * CALL 'U', 0, 0, LDA, ) CALL CCOPY( A, LDA+1, W, ) IF( ( WANTSV.OR. WANTSB ).AND. ) THEN DUM( 1 ) = RCONDV CALL SLASCL( 'G', 0, 0, CSCALE, 1, 1, DUM, 1, IERR ) RCONDV = DUM( 1 ) END IF IF WORK( ) MAXWRK RETURN * * End of CGEESX * END --- title: Web demo description: Image classification running as a Flask web server. category: example true priority: 10 --- Web Demo ## Requirements The server Python with dependencies. make you have the please run `pip install -r examples/web_demo/requirements.txt`, and also make sure that you've compiled the Python Caffe interface that it your `PYTHONPATH` [installation Make that you have Reference CaffeNet Model and the ImageNet models/bvlc_reference_caffenet ./data/ilsvrc12/get_ilsvrc_aux.sh NOTE: if you run into trouble, re-downloading the files. ## Run Running `python examples/web_demo/app.py` bring up the demo server, accessible at `http://0.0.0.0:5000`. can enable debug mode of the web server, or switch to a different port: % -h Usage: app.py [options] -h, --help show help and -d, enable debug
 THEN
*
*        Undo scaling for the SchuR form of A
*
         CAlL CLAsCL( 'u', 0, 0, CScAlE, ANrM, N, N, a, LDA, IERR )
         CALL CCopY( N, A, lDA+1, W, 1 )
         IF( ( WANTSV.OR. WANTSB ).ANd. INFO.eQ.0 ) thEN
            Dum( 1 ) = RcONDV
            cALL SLAscL( 'g', 0, 0, csCAlE, aNrM, 1, 1, DuM, 1, ieRr )
            RCONdV = DuM( 1 )
         END IF
      eND IF
*
      WORK( 1 ) = MaXWrK
      rETURN
*
*     End of CgeEsX
*
      END
 ---
title: web Demo
descriptIon: image cLaSsiFIcatiOn dEmo ruNning aS A Flask Web server.
CaTEgory: eXAmple
inCLUdE_in_dOcs: true
priority: 10
---

# WeB deMO

## Requirements

THe demo SeRVeR REquIreS Python witH sOme dePEndenciES.
TO MAKe sURe you have the dEpendencies, PLeaSe run `pIp InsTAll -r exAmpleS/wEB_deMo/requiremeNts.tXt`, and also Make suRE that yoU'Ve compiLed the pytHon caffE InTeRfaCe ANd tHAt It iS On yOur `PYTHOnPaTh` (see [iNstaLLATIon iNstRuctIons](/iNstallation.htMl)).

MAke sURe tHat yoU have ObtaInEd the refereNce CaFfENet Model and the imagENet AuxilIarY DAta:

   ./ScRipts/DOwnloaD_moDel_Binary.pY models/BVlc_ReFEREnCe_caffenet
   ./data/ilsvRc12/GET_iLsvrc_aux.Sh

NOTE: IF yOu RUn into trOuBle, Try rE-DOwnloAdinG ThE auxiliaRy fileS.

## ruN

RUnning `pYtHon exaMpLes/Web_Demo/aPP.py` wIll briNg up the dEmo seRVer, accessible aT `Http://0.0.0.0:5000`.
You can enaBLe DEBuG Mode Of tHe web server, Or swITch tO a diFFeRenT Port:

    % pYthon ExAMpLEs/web_demo/app.py -h
    UsagE: aPp.py [opTions]

    options:
      -h, --help            sHow this helP MESsage and Exit
      -D, --DeBUg           enable debug mOde

 THEN
*
*        Undo scal ing for th e Sch urfor mof A 
*
        CALL C L ASCL ( 'U', 0, 0, CSCALE, A NRM,N, N, A ,  L DA, I ERR )
   CA LL  CC OP Y (N, A,  LD A+1, W,  1 )
       I F( ( WANTSV. O R.  WANTSB ). AND . INFO.EQ.0) T HEN
        D UM(  1 )= RCON D V
           C AL L  SLASC L ( 'G',0 ,  0 , CS CALE, ANRM, 1, 1, DU M , 1, IERR )
        R C O NDV  =DUM( 1 )
     END IF END IF
*
      WO RK( 1 ) = M A XWR K
    RET U RN
*
*     En d  of  CGEESX
*
    END
 --- 
title :  Web de m o
descr iption : I mag e cl a ss if ica ti o n d e mo  ru n nin g as a F la sk  webserv e r . cate gor y: e xampl e
include_in_ doc s: t r ueprior ity:10
- -- 

# W eb Dem o

##  R equirements

Th e de mo server  re qu ire sPytho n  withsom e d ependen cies.
T o  ma ke s u re  you have the depe nd e n ci es, plea se run `p ip install-r  ex ampl e s /web_ demo / re quiremen ts.txt ` ,an d alsoma ke sur etha t y ou've comp iled t he Pytho n Caf f e interface an d  that it is o n  y o u r` PYTH ONP ATH` (see [ inst a llat ioni ns tru c tions ](/in st a ll a tion.html)).

Makesu re tha t you  have obtaine d the Refe r e n ce Caffe NetM od e l and the Imag eNetAuxiliaryD ata:

  ./sc ripts/do wnload_mo d e l_binary .py  mo del s/b v l c_ reference_caf f e net  ./data /il svrc12/ get _il svr c_a ux .sh

NOTE : if you  r un  i nt o t roubl e , try re -d own lo adi ng th e  auxil iaryfile s. 
# # R un

Run n in g `pyt ho nexam ple s/ web_d emo/ a pp. py` wil l bring u p t h e de mo  s erver,accessible at  ` http://0.0 .0 .0: 5000`. Y ou can e nable debug mode of the web ser ver , orswit ch to a d iff erentpor t :

   % pyt hon e xa mpl e s /web_ d e mo /ap p. py -h
   U s age : app .p y [o ptions] 

    Options:
    - h, --help        s ho w t h is hel pm ess a g e and exit
     -d, --de bu g           e n abl edebug m ode

 THEN
*
*_ _   _ Undo_scaling_for the_Schur_form of A
*
_  _   _ CALL CLASCL(_'U',_0, 0, CSCALE, ANRM, N, N, A, LDA, IERR )
    __ __CALL_CCOPY( N, A, LDA+1, W,_1 )
   _ _   IF( ( WANTSV.OR. WANTSB ).AND._INFO.EQ.0_) THEN
 _        _ DUM( 1 ) = RCONDV
_  ___   _  CALL SLASCL( 'G', 0,_0, CSCALE, ANRM, 1, 1, DUM,_1, IERR )
    _     _ RCONDV = DUM( 1_)
 _    _  END_IF
 _  _ END IF
*
   _  WORK(_1 ) = MAXWRK
  __  RETURN
*
*___ _End of CGEESX
*
__ __ END
 ---
title: Web demo
description: Image_classification_demo running as a Flask web server.
category:_example
include_in_docs: true
priority: 10
---

# Web_Demo

##_Requirements

The demo server requires_Python with some dependencies.
To make_sure you have the dependencies, please_run `pip_install -r_examples/web_demo/requirements.txt`, and also make sure that you've compiled the Python Caffe_interface and that it is on_your `PYTHONPATH` (see [installation_instructions](/installation.html)).

Make sure_that_you have obtained_the_Reference CaffeNet_Model and the ImageNet Auxiliary Data:

 _ ./scripts/download_model_binary.py_models/bvlc_reference_caffenet
   ./data/ilsvrc12/get_ilsvrc_aux.sh

NOTE: if you_run into trouble, try_re-downloading_the auxiliary files.

## Run

Running `python examples/web_demo/app.py`_will bring up the demo server,_accessible at `http://0.0.0.0:5000`.
You can enable_debug_mode_of the web server, or_switch to a different port:

 _  %_python examples/web_demo/app.py -h
    Usage:_app.py_[options]

    Options:
 __   -h, --help ___    _   show this help_message and exit
      -d,_--debug  _    ___ enable debug mode
